Home Docs Error help

The API token is not valid

Error code invalid_token
Account and sign-in

The API token is not valid

invalid_token

An API token was sent, but it could not be accepted for this site.

HTTP 401·Account and sign-in

What it means

What happened

An API token was sent, but it could not be accepted for this site.

Why

Why it might have happened

  • The token may be expired, revoked, mistyped, or for a different site.
  • The account behind the token may no longer be active.
  • A tool may be reusing an old authorization header.
Next steps

What you can try

  1. Sign in again or create a new API token.
  2. Check that the token is meant for this site.
  3. Update any script, app, or saved secret that is still using the old token.
Related
Still stuck?

Get help

If the error keeps happening, contact support and include invalid_token plus what you were trying to do on attn.ca.

Contact and feedback options