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

Return a correctly signed JWT that expired an hour ago

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

Use it against GET /api/auth/jwt/me to test how a client handles 401 for expired tokens.Use it against GET … to test how a client handles 401 for expired tokens.

Responses

200
The expired token.

Example

Request
curl -X GET "https://api.testingapis.com/api/auth/jwt/expired" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{
  "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI…
  "tokenType": "Bearer",
  "expiredAt": "2026-09-30T17:26:38Z",
  "message": "Correctly signed but expired. GET /api/auth/jwt/me with it should return 401.
}

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.