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

# Authentication

> How to authenticate requests to the Mathify API.

Every request needs an API key. Generate one at
[mathify.dev/settings/api-keys](https://mathify.dev/settings/api-keys).
Keys look like `mk_live_<64 hex chars>`. Using the key to generate requires a
positive credits balance (or a usage-based subscription) — see
[mathify.dev/pricing](https://mathify.dev/pricing) for plan details.

Pass the key via either header:

```
Authorization: Bearer mk_live_...
```

or

```
x-api-key: mk_live_...
```

That's it — no project ID or user ID needed in the request. Reads and writes
are automatically scoped to the key owner.
