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

# Authentication

> Authenticate every request with a platform token.

Every request needs a platform token: `jp_` followed by 48 lowercase hex characters. Send it as a header:

```http theme={null}
Authorization: Bearer jp_0123…
```

Clients that cannot set headers (for example the browser WebSocket API) may pass it as a query parameter instead: `?token=jp_…`. The header wins when both are present.

> [!WARNING]
>
> A token grants full access to your account's platform usage. Do not embed it in browser or mobile apps that you ship to end users; connect from your server instead.

Create and revoke tokens under [Keys](https://platform.meetjamie.ai/keys) in the Platform console, or in the Jamie app under **Settings → Developers → Platform**. You can hold up to 20 active tokens per account. Revoking a token takes effect within about a minute and does not close streams that are already open.

A missing, malformed, unknown or revoked token gets HTTP `401 {"error":"unauthorized"}`.


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