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

Return the claims of the current JWT

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

Header: Authorization: Bearer <accessToken> from POST /api/auth/jwt/login.Header: Authorization: Bearer <accessToken> from POST ….

Bearer token — {{userJwt}}

Responses

200
Username, role, profile and all claims.
401
Token missing, invalid or expired.

Example

Request
curl -X GET "https://api.testingapis.com/api/auth/jwt/me" \
  -H "Authorization: Bearer {{userJwt}}" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{
  "username": "user",
  "role": "user",
  "name": "Uma User",
  "email": "user@example.com",
  "claims": [
    {
      "type": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier",
      "value": "user"
    },
    {"type": "http://schemas.microsoft.com/ws/2008/06/identity/claims/role", "value": "user"},
    "… 6 more items"
  ]
}

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.