# `invalid_key`

> 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 not one we issued.

## Status

HTTP `401`, title `Invalid key`. 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 copied only in part.
- A key from another service or environment was sent.

## What to do

Action: Check the whole key was copied, or create a new key in the console.

The key is not one of ours. Check you copied all of it.

## 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/invalid_key",
  "title": "Invalid key",
  "status": 401,
  "code": "invalid_key",
  "retryable": false,
  "action": "Check the whole key was copied, or create a new key in the console.",
  "remedy": "The key is not one of ours. Check you copied all of it."
}
```

## Related

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

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