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

# Authentication

> One bearer key per workspace.

Every request carries the key as a bearer token:

```bash theme={null}
curl -s https://app.kudohires.com/api/v1/me -H "Authorization: Bearer kh_live_..."
```

* **One key, one workspace.** A key sees exactly one workspace. An id from another workspace answers `404`,
  the same as an id that does not exist.
* **Getting a key.** Workspace owners and admins create keys in the app under **Connections → API keys**.
* **Scopes.** A key carries scopes: `jobs:read` (searches and search status), `jobs:write` (create a search),
  `candidates:read` (candidates and search results), `find_more:write` (queue a search) and `candidates:analyze`
  (analyse one candidate). Keys created in the app have all five. A missing scope answers `403 insufficient_scope`.
* **Revocation.** Keys do not expire. Revoke one under **Connections → API keys**; it stops working at once.
* **Suspended workspaces.** If the workspace is not active, every request answers `403 workspace_inactive`.
* **Never put the key in a URL** (query strings end up in logs). Only the `Authorization` header is read.
* **Kudo Hires stores only a hash** of the key, so a lost key cannot be shown again: create a new one.

## Errors

Every error has the same shape:

```json theme={null}
{ "error": { "code": "invalid_api_key", "message": "Missing, unknown or revoked API key." } }
```

| Status | Codes |
| - | - |
| 400 | `invalid_request` |
| 401 | `invalid_api_key` |
| 403 | `insufficient_scope`, `workspace_inactive`, `view_as_not_allowed` |
| 404 | `not_found`, `profile_not_found` |
| 409 | `search_in_flight` |
| 422 | `missing_brief`, `job_not_active`, `too_many_unreviewed`, `not_enabled` |
| 429 | `daily_limit` (analyses; resets at 00:00 UTC) |
| 503 | `auth_unavailable`, `unavailable` (retry later), `not_configured` |


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