Errors

api_key_invalid

401 – API key not valid.

API key not valid. Answered with 401.

What it means

The request carried something shaped like an Admin Key or an Identity Key, and no live key matches it: the key was never minted, or it has been revoked. Revocation takes effect on the next request with the key, so a key that worked a moment ago can answer with this one.

What to do

Do not retry with this key. Obtain a new one from the account holder: Admin Keys are created in the console under API keys or with POST /api/keys.

The body

{
  "type": "https://tigby.eu/problems/api_key_invalid",
  "title": "API key not valid",
  "status": 401,
  "detail": "…what was refused, naming this request's own values",
  "code": "api_key_invalid",
  "doc_url": "https://docs.tigby.eu/errors/api_key_invalid",
  "agent_hint": "…the next step, for software"
}

Branch on code. The detail names this request's own Handle, id or limit and is not part of the contract.