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

# M004: Key expired

> Manifest error M004 fires when the API key you sent is past its expiration date. Returns HTTP 401. Fix: rotate the key in the dashboard.

## What you saw

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
[🦚 Manifest M004] This key has expired. Generate a new one here
See https://manifest.build/docs/errors/M004
```

## Why it happened

Manifest keys can carry an expiration date. Yours is past that date, so it no longer authenticates anything.

## How to fix it

1. Open the [dashboard](https://app.manifest.build) and rotate or generate a new key for this agent.
2. Update your client's config with the new value.
3. If you didn't intend the key to expire, edit the agent's settings and clear the date.

## Related

* [M005: Key not recognized](/errors/M005)
* [M001: Missing Authorization header](/errors/M001)
* [All error codes](/errors)
