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

# Authentication

> Bearer token authentication for tenant and admin routes.

# Authentication

Praeto Dispatcher uses bearer token authentication.

## Tenant API routes

Tenant routes require a tenant API key:

```http theme={null}
Authorization: Bearer praeto_live_xxxxxxxxxxxxxxxxx
```

## Admin API routes

Admin routes require the configured admin key:

```http theme={null}
Authorization: Bearer <ADMIN_API_KEY>
```

## Common authentication failures

```json theme={null}
{
  "ok": false,
  "error": "missing bearer token"
}
```

```json theme={null}
{
  "ok": false,
  "error": "invalid API key"
}
```
