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

# Authentication

> Authenticate with the Zetta API using bearer tokens.

Zetta APIs use bearer tokens.

## Get a key

Create keys at: [zettaai.co/dashboard/keys](https://www.zettaai.co/dashboard/keys)

## Header

```text theme={null}
Authorization: Bearer zt_live_your_key
```

## Example

```bash theme={null}
curl https://www.zettaai.co/api/v1/agent-books/aeon?range=30d \
  -H "Authorization: Bearer zt_live_your_key"
```

## Keep keys private

> [!WARNING]
>
> Never publish API keys.

Do not publish API keys in:

* GitHub
* frontend code
* public docs
* screenshots
* Discord
* X posts

If a key leaks, revoke it from the dashboard immediately.

## Related

* [Agent-Scoped Keys](https://docs.zettaai.co/build/agent-scoped-keys.md)
* [Agent Books API](https://docs.zettaai.co/build/agent-books-api.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.