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

# API keys

> Programmatic access to the Kazzle API.

API keys let you access the Kazzle API programmatically - from scripts, CI pipelines, or external tools.

## Creating an API key

Go to **Settings > API keys** and click **Create key**. Give it a name and copy the key immediately - it won't be shown again.

## Using the key

Pass the API key in the `Authorization` header:

```
Authorization: Bearer kzl_your_api_key_here
```

Or set it as the `KAZZLE_API_KEY` environment variable for the Kazzle CLI:

```bash theme={"theme":"material-theme-darker"}
export KAZZLE_API_KEY=kzl_your_api_key_here
kazzle secrets list --collection=my-app
```

## Scope

API keys are scoped to the space they were created in. They have the same permissions as the user who created them.

## Revoking

Delete an API key from **Settings > API keys** at any time. Revocation is immediate - any request using the key will fail.

## See also

* [AI API](/platform/ai-api) - universal chat, image, speech, transcription, and video endpoints
* [API Reference](/api-reference) - full endpoint documentation
* [Vault](/work/vault) - managing secrets and credentials
