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

# KEY_EXPIRED

> The API key has passed its expiry date.

`401 Unauthorized` · type `authentication`

**When it happens**

The key was created with an expiry date, and that date has passed.

**What to do**

Ask an agency admin to create a new key. To rotate without downtime, create the new key before the old one expires; a key can be used alongside another.

## Example

```json 401 Unauthorized theme={null}
{
  "error": {
    "type": "authentication",
    "code": "KEY_EXPIRED",
    "message": "This API key has expired.",
    "doc_url": "https://docs.bridgelinepf.com/errors#KEY_EXPIRED",
    "request_id": "req_8fJ2kQ9xLm4TzW7nB3cY5pDv"
  }
}
```

See all [error codes](/errors), or how to [handle errors](/guides/errors).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.