> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fiveninelabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# key_revoked

> 401 authentication — this key existed and was revoked; revoked_at says when.

**HTTP 401 · type `authentication`.** The key was valid once and has been revoked —
from the dashboard, or during an incident response. Revocation is immediate and
permanent; a revoked key is never reactivated. Nothing ran and nothing was charged.

## The shape

```json theme={null}
{
  "error": {
    "type": "authentication",
    "code": "key_revoked",
    "message": "This key was revoked on 2026-08-20.",
    "doc_url": "https://docs.fiveninelabs.com/errors/key_revoked",
    "request_id": "req_0mm41s",
    "revoked_at": "2026-08-20T09:14:02Z"
  }
}
```

`revoked_at` is when it happened — useful for correlating with a rotation or an
incident.

## How to fix

* Switch to a current key. Mint one at
  [platform.fiveninelabs.com](https://platform.fiveninelabs.com) if none exists, and
  update every deployment that held the old one.
* If you didn't revoke this key, treat it as a security signal: check the dashboard's
  key list (last-used timestamps) and your team.
* Getting `key_revoked` rather than `invalid_key` is deliberate — it tells you your
  configuration is stale, not wrong.

## Reproduce it

Revoke a key in the dashboard (mint a throwaway first), then call anything with it:

```bash theme={null}
curl https://api.fiveninelabs.com/v1/me \
  -H "Authorization: Bearer $REVOKED_KEY"
```
