Errors
api_key_not_found
404: No such API key. The Org holds no API Key with that id.
No such API key. Answered with 404.
What it means
The Org holds no API Key with that id. GET /api/keys/{id} reads live keys only, as the list GET /api/keys does, so there a revoked key answers this code. A revoke still finds a revoked key (DELETE /api/keys/{id} answers 204 for it) and GET /api/identities/{handle}/keys keeps listing an Identity's revoked keys. An id from another Org is never found.
What to do
List the Org's keys with GET /api/keys and use an id from there.
The body
{
"type": "https://tigby.eu/problems/api_key_not_found",
"title": "No such API key",
"status": 404,
"detail": "…what was refused, naming this request's own values",
"code": "api_key_not_found",
"doc_url": "https://docs.tigby.eu/errors/api_key_not_found",
"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.