Skip to main content
type
string
authentication_error
status
number
401

What happened

The API could not authenticate your request. This happens when the Authorization header is absent, does not use the Bearer scheme, or the token does not match any active token in the system.
{
  "error": {
    "type": "authentication_error",
    "code": "TOKEN_INVALID",
    "message": "Missing token",
    "status": 401,
    "doc_url": "https://done.mintlify.app/errors/token-invalid"
  }
}

How to fix

Include a valid API token in every request using the Bearer scheme:
curl https://api.done.app/v1/claims \
  -H "Authorization: Bearer <your_token>"
Tokens are shown only once — at creation time. If you have lost your token, generate a new one from the dashboard and revoke the old one.

Common causes

Every request to /v1/* requires an Authorization header. Requests without one return TOKEN_INVALID.
The API only accepts the Bearer scheme. Other schemes (e.g. Basic, Token) are rejected.
// ❌ invalid
Authorization: Token abc123

// ✅ valid
Authorization: Bearer abc123
If a token is deleted from the dashboard, all subsequent requests using it return TOKEN_INVALID. Create a new token and update your integration.