# `auth.key_expired` — API key expired

**HTTP status:** 401  
**Retryable:** no — change the request or the flow first

## When it happens

The key had an expiry date and it has passed.

## What to do

Create a new key (or rotate the expired one) in the panel.

## Example response

```json
{
  "type": "https://quickota.com/developers/errors/auth.key_expired",
  "title": "API key expired",
  "status": 401,
  "code": "auth.key_expired",
  "detail": "The key had an expiry date and it has passed.",
  "suggestion": "Create a new key (or rotate the expired one) in the panel.",
  "retryable": false,
  "requestId": "req_7f3a2c9e41d0b8a6c5e21f90"
}
```

See [Errors](https://quickota.com/developers/guides/errors) for how to handle errors in general.
