# Authentication (/docs/api/authentication)

> For AI agents, the [documentation index](https://bitrouter.ai/llms.txt) lists all pages. Append .md to a documentation URL to read its Markdown.

Send your API key either way; both work on every endpoint.

```http
Authorization: Bearer $SPARE_API_KEY
x-api-key: $SPARE_API_KEY
```

OpenAI SDKs send the first, Anthropic SDKs the second.

## Scopes \[#scopes]

A new key can call models and read its own requests' settlement (`inference:invoke`). To read your
balance or use the configuration endpoints, create a key in the console with the scopes listed in the [endpoint tables](https://bitrouter.ai/docs/api).
Calling an endpoint without its scope returns `403` with the missing scope in the message.

## `me` \[#me]

Paths under `/v1/namespaces/me/` act on the workspace the key belongs to, so you never need a workspace id.