Skip to main content
401 UnauthorizedAuthentication

TOKEN_EXPIRED

The access token has expired

When it happens

Access tokens last one hour. This one is older than that.

How to fix it

  1. Fetch a new token from POST /oauth/token and retry.
  2. Cache tokens and refresh them a few minutes before expires_in runs out, so requests never meet an expired token.
RetryingRetry with the same Idempotency-Key.How idempotency works

Example response

HTTP 401 Unauthorized
{
"status": "failed",
"error": {
"code": "TOKEN_EXPIRED",
"message": "The access token has expired. Get a new one from /oauth/token.",
"doc_url": "https://developer.getreeds.co/errors/TOKEN_EXPIRED"
}
}