/
Verify JWT token
Verify JWT tokens with automatic issuer detection:
- Decodes JWT to extract issuer claim
- PERS tokens: Verified internally
- External tokens: Future support planned
- Standards-compliant JWT verification
Security
projectKey
- Mock serverhttps://docs.pers.ninja/_mock/swagger/auth/verify
- https://api.pers.ninja/v2https://api.pers.ninja/v2/auth/verify
curl -i -X POST \
https://docs.pers.ninja/_mock/swagger/auth/verify \
-H 'Content-Type: application/json' \
-H 'x-project-key: YOUR_API_KEY_HERE' \
-d '{
"authToken": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9..."
}'Token verification completed (check valid field for result)
Universal identifier email for the authenticated entity
Example:"user-c8e619a4f7f8419d94320d403213ef49@id.pers.ninja"
Response
{ "valid": true, "payload": null, "tenantId": "Invalid token", "identifierEmail": "user-c8e619a4f7f8419d94320d403213ef49@id.pers.ninja", "errorMessage": "Invalid token", "errorCode": "REFRESH_TOKEN_EXPIRED" }