# `key_expired`

> For the complete documentation index, see [llms.txt](https://www.shortsintel.com/llms.txt). Every docs page is also available as markdown: add .md to its URL. To connect, read [agents.md](https://www.shortsintel.com/agents.md).

The bearer key is past its expiry date.

## Status

HTTP `401`, title `Key expired`. One of the [credentials](https://www.shortsintel.com/docs/reference/errors#credentials) errors. Branch on `code`, never on the status or the prose.

Retryable: no. Every body carries this as `retryable: false`, beside `action` and `remedy`: the same request will fail again until the request changes or a person acts.

## Common causes

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

## What to do

Action: Create a new key in the console and use it instead.

The key expired at `expired_at`. Issue a new one.

## Example

The body arrives as `application/problem+json`, with `retryable` and the `remedy` above. Most responses add `detail` about the occurrence, and some add fields of their own.

```json
{
  "type": "https://www.shortsintel.com/docs/reference/errors/key_expired",
  "title": "Key expired",
  "status": 401,
  "code": "key_expired",
  "retryable": false,
  "action": "Create a new key in the console and use it instead.",
  "remedy": "The key expired at `expired_at`. Issue a new one."
}
```

## Related

- [Authentication and limits](https://www.shortsintel.com/docs/concepts/authentication-and-limits)
- [Every error code](https://www.shortsintel.com/docs/reference/errors)

[Previous key_revoked](https://www.shortsintel.com/docs/reference/errors/key_revoked)[Next invalid_token](https://www.shortsintel.com/docs/reference/errors/invalid_token)
