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

# Authentication

> Authenticate AgentBody Gateway API requests with an API key.

Get an API key from the [AgentBody Console](https://agentbody.io/console/keys), then send it with every API request.

<Card title="Get API key" icon="key" href="https://agentbody.io/console/keys">
  Create, manage, or revoke API keys in the AgentBody Console.
</Card>

## Send the authorization header

```bash theme={null}
curl --request <METHOD> \
  --url "https://api.agentbody.io/<PATH>" \
  --header "Authorization: Bearer <AGENTBODY_API_KEY>"
```

Use the method, path, and request schema from the [API reference](/api-reference/introduction). Store keys in your deployment platform's secret manager or server-side environment variables. Never expose a key in browser code or a public repository.
