On this page

API

token_expired

HTTP 401. Token expired

What it means

The token is past its expiry date.

What to do

Create a new token. Tokens expire after 90 days unless you chose another lifetime; CI tokens are best kept short and replaced on a schedule.

Retrying

Do not retry the same request. Change it first.

Example

json
{
  "type": "https://reuseforge.com/docs/api/errors/token_expired",
  "title": "Token expired",
  "status": 401,
  "detail": "The token expired.",
  "instance": "/api/v1/items/acme/invoice-extractor",
  "code": "token_expired",
  "request_id": "req_c4v8n2m6x1z3"
}

Every error is application/problem+json (RFC 9457). Branch on code, show detail to people and quote request_id when you ask for help. See the error catalogue.