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

# invalid_api_key (401)

> The API key is missing, malformed, or not recognised.

Returned when no API key is presented, the key is malformed, or it doesn't match
an active `partner_api_keys` record.

```json theme={null}
{ "error": { "code": "invalid_api_key", "message": "invalid API key" } }
```

**Fix**

* Send the key as `Authorization: Bearer cpk_live_…` (or `X-Partner-API-Key`).
* Check you're using the right key for the environment (`cpk_live_*` for
  production, `cpk_test_*` for sandbox).
* Public widget keys (`cppk_*`) are not accepted on this surface.
