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

# Authentication

> Authenticate with an API key.

Send your API key in the `x-api-key` header on every request.

```bash theme={null}
--header 'x-api-key: <your-api-key>'
```

Admins create keys in the Studio under **Organization** › **Keys**. You can see your own keys under **Settings** › **My keys**. A key's secret is shown only once, when it's created. See [Team & Access](https://docs.personal.ai/composer/admin/team-and-access.md).

> [!WARNING]
>
> Keep keys secret. Anyone with your key can act as you. If a key is exposed, revoke it in the Studio and create a new one.

## Kinds of keys

| Key | What it can do |
| - | - |
| **Admin** | Every operation in the workspace, including admin-only ones like creating onboarding links |
| **Standard** | Every operation that isn't admin-only. This is the key a Studio user with member access has. |
| **Read-only** | Only operations that don't change anything |
| **Member key** | A person's own key, from [onboarding](https://docs.personal.ai/composer_apis/onboarding-sessions.md#claiming-the-persons-key). It can only chat with their own assistant: [Chat](https://docs.personal.ai/composer_apis/endpoint/agent-chat.md), [Chat (Streaming)](https://docs.personal.ai/composer_apis/chat-streaming.md), [Create Conversation](https://docs.personal.ai/composer_apis/endpoint/conversation-create.md), [List Conversations](https://docs.personal.ai/composer_apis/endpoint/conversation-list.md), [Get Conversation Messages](https://docs.personal.ai/composer_apis/endpoint/conversation-messages.md), [Stop a Reply](https://docs.personal.ai/composer_apis/endpoint/run-cancel.md), and revoking its own key. |
| **Webhook** | Only sends events to [Inbound Webhooks](https://docs.personal.ai/composer_apis/inbound-webhooks.md) for one device. It can't call operations. |

A key that tries something it isn't allowed to do gets a `403` with a message explaining why.

## Other ways to authenticate

* **MCP**: the [MCP server](https://docs.personal.ai/composer_apis/mcp.md) also accepts `Authorization: Bearer <your-api-key>`.
* **Inbound webhooks**: accept either `x-api-key` or `Authorization: Bearer`.
* **Onboarding sessions**: need no key. The token in the link is what grants access. See [Onboarding Sessions](https://docs.personal.ai/composer_apis/onboarding-sessions.md).


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