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

# Authentication

> Send a bearer API key, understand permissions, and rotate or revoke keys.

Every request carries one API key in the Authorization header. Keys are opaque: they are not tokens you can decode, and only SeekOut can tell what a key is allowed to do.

## Send the key as a bearer credential

Put the key in the `Authorization` header and nowhere else. Never put it in a URL, a request body, a log line, or browser storage.

```text theme={null}
Authorization: Bearer $SEEKOUT_API_KEY
```

A missing, malformed, expired, or revoked key returns `401`. A valid key without permission for that operation returns `403`. The two are never interchangeable. See [errors](https://docs.seekout.com/developer-platform/errors.md).

## Test and live keys

Every key looks like `so_ext_…` and belongs to one environment. Production accepts live keys only: every paid call spends your organization's real credits, and a test key is refused with `401`.

`GET /v1/whoami` reports the key you are actually using: its `workspace_id`, `org_root`, `application_id`, `audience`, and the exact `scopes` it carries. It needs no permission beyond a valid key, which makes it the fastest way to check a key. It does not charge credits.

```bash theme={null}
curl --request GET "https://developer-api.seekout.io/v1/whoami" \
  --header "Authorization: Bearer $SEEKOUT_API_KEY"
```

## API access sets

A key is created against one or more API access sets, and those sets decide which operations it may call. Ask for the narrowest set your integration needs. An application's access cannot be changed, so broader access means creating a new application and key, with no change to your code.

| Access set | Scope | Allows |
| - | - | - |
| Candidates Search | `candidates.search` | Search candidates, page results, resolve and suggest entities, and list the sources this key can use. |
| Contacts Retrieve | `contacts.retrieve` | Call `POST /v1/contacts`. Offered on workspace keys only. |
| Person Matches Execute | `person_matches.execute` | Call `POST /v2/person-matches` by an identifier, a name with details, or `candidate`. |
| Profiles V1:Unlock | `profiles.v1:unlock` | Needed for `include: full_profile` on `POST /v2/candidates/search` and its pages. For person match it is kept for older keys: on its own, it allows a person match that names the person by `candidate` alone. |

`GET /v1/whoami` needs no extra permission. The [API reference](https://docs.seekout.com/developer-platform/api-overview.md) lists only the operations this API serves. A valid key without `candidates.search` still verifies, then returns `403` on search. Reading a full profile by person match needs only `person_matches.execute`; an older key with only `profiles.v1:unlock` can make that read by `candidate`.

## What happens on every request

* The API reads the key from the Authorization header. A malformed or duplicated credential fails before anything else runs.
* SeekOut validates the key for workspace, environment, permissions, and revocation before the operation runs. A downstream provider never receives your key or decides its authority.
* The API enforces the operation's permission itself, and rejects any organization or account identifier sent in the request body.
* Results come back with opaque SeekOut identifiers.

## Rotation and revocation

Rotate a key from [API keys](https://console.seekout.io/console/api-keys) when you suspect exposure or on your own schedule. Rotation issues a new key alongside the old one so you can deploy before revoking. Revocation takes effect on the next request.

> [!WARNING]
>
> Keys are shown once. SeekOut stores only a one-way hash of the secret. If a plaintext key is lost there is no way to recover it. Rotate the key and revoke the previous one.


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