> ## 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.

# Agent-Scoped Keys

> Restrict an API key to a single agent.

Agent teams can create API keys scoped to one agent.

## Example key name

```text theme={null}
agent:aeon
```

An agent-scoped key can only access that agent's data.

## Cross-agent access is blocked

If a key scoped to `aeon` is used for `luca`, the request will fail.

```json theme={null}
{
  "error": "Key is scoped to agent 'aeon', not 'luca'"
}
```

## Why use them

Agent-scoped keys protect agent teams from accidentally exposing broad access. Prefer them over global keys when embedding data in agent-owned surfaces.

## Related

* [Authentication](/build/authentication)
* [API Overview](/build/api-overview)
