TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Returns the profile of the user who owns the session cookie

GEThttps://api.testingapis.com/api/cookies/meSign in to see this endpoint's URL

Reads the apibee_session cookie set by POST /api/cookies/login.Reads the apibee_session cookie set by POST ….

Note: Log in with POST /api/cookies/login first; the apibee_session cookie it sets is required.Note: Log in with POST … first; the apibee_session cookie it sets is required.

Session cookie apibee_session (from POST /api/cookies/login)Session cookie apibee_session (from POST …)

Responses

200
User profile and session expiry.
401
No cookie, unknown or expired session.

Example

Request
curl -X GET "https://api.testingapis.com/api/cookies/me" \
  -H "Cookie: apibee_session={{sessionId}}" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{
  "user": {
    "id": 1,
    "username": "test",
    "name": "Test User",
    "email": "test@example.com",
    "role": "user"
  },
  "session": {"expiresAt": "2026-09-30T19:26:36Z"}
}

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.