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

# 401 — Authentication Error

> The request is missing a valid API key.

```
Status: 401 Unauthorized
Code:   UNAUTHORIZED
Type:   https://docs.bedrock.cv/errors/authentication
```

## Description

The request does not include a valid API key. All API requests must include an `Authorization: Bearer` header or an `X-API-Key` header.

## Example

```json theme={null}
{
  "type": "https://docs.bedrock.cv/errors/authentication",
  "title": "Missing or invalid API key",
  "status": 401,
  "detail": "Provide a valid API key via the Authorization: Bearer or X-API-Key header.",
  "code": "UNAUTHORIZED",
  "request_id": "req_01JABCD123"
}
```

## Common Causes

* Missing `Authorization` or `X-API-Key` header
* Revoked or expired API key
* Malformed key value

## Resolution

Include a valid API key in the `Authorization: Bearer` header (preferred) or the `X-API-Key` header. You can create and manage keys in [Developer Settings](/guides/api-keys).
