> ## 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.

# Errors and retries

> Read the problem document, branch on the stable code, and retry only what is safe.

Every failure is a JSON problem document (RFC 9457) with a stable `code` you can branch on. Read the code, not the prose.

## The problem document

Failures use the `application/problem+json` media type and always carry `type`, `title`, `status`, and `code`, and may carry `detail`. When a request identifier is available, `request_id` and the `X-Request-Id` response header carry it. Quote that value in a support request.

```http theme={null}
HTTP/1.1 403 Forbidden
Content-Type: application/problem+json
WWW-Authenticate: Bearer realm="seekout-developer-api", error="insufficient_scope", scope="candidates.search"

{
  "type": "urn:seekout:developer-api:problem:scope_missing",
  "title": "Insufficient scope",
  "status": 403,
  "code": "scope_missing",
  "instance": "urn:seekout:developer-api:request:43fa2cc3-87b8-4ad9-a17a-5790fd0f3760",
  "request_id": "43fa2cc3-87b8-4ad9-a17a-5790fd0f3760",
  "required_scope": "candidates.search"
}
```

The `WWW-Authenticate` header and the `required_scope` member are sent when a route refuses the key up front; a `403` `scope_missing` from a later check, such as reading a full-profile search page, may arrive without them.

`code` is the stable contract. `detail` is written for a human and may change; never parse it. Response bodies may gain fields, so ignore any member you do not recognize.

## Status codes

| Status | Meaning | What to do |
| - | - | - |
| `400` | Malformed authentication, idempotency, or cursor input | Fix the request; do not retry unchanged |
| `401` | The key is missing, invalid, revoked, or for another audience | Use a valid active key |
| `402` | The work cannot be funded at its minimum useful size | Add credits or ask for less work; nothing was charged |
| `403` | The key is valid but lacks the permission for this operation | Request the permission, or use a key that has it |
| `404` | The resource does not exist, or is not enabled for your organization | Check the path; ask an admin whether the operation is enabled |
| `409` | An idempotency key, quote, or continuation conflicts with existing state | Refresh the state; do not assume a new hold exists |
| `410` | A cursor, job, or result is no longer retained | Start the operation again |
| `413` | The request body exceeds 65,536 bytes | Send a smaller request |
| `415` | The media type is not supported | Send `Content-Type: application/json` |
| `422` | The body did not satisfy the operation contract | Correct the fields named in `detail` |
| `429` | Admission was denied before useful work happened | Wait for `Retry-After`, then retry |
| `503` | A dependency is unavailable or a terminal state is uncertain | Retry after `Retry-After`; contact support if it persists |

## 402, 403, 429, and 503 are deliberately different

These four are never substituted for one another, so each one tells you exactly what to change.

* `401` is about the credential itself: absent, invalid, or revoked.
* `403` is about authority: the credential is real but not allowed here.
* `402` is commercial: the work is not funded. It is raised before any provider work happens, so nothing was charged and nothing changed. Out of credits is always the code `insufficient_credits`, on every paid operation. The only other `402` codes are `family_budget_exhausted` and `organization_budget_exhausted`, which mean a spending budget your administrator set refused the spend. Raise the budget rather than adding credits.
* `429` is operational admission: you asked for more concurrent work than your limits allow. See [rate limits](https://docs.seekout.com/developer-platform/rate-limits.md).
* `503` is dependency uncertainty: a service the request needs is unavailable, or the outcome could not be confirmed.

## Retries and idempotency

`POST /v2/candidates/search` and `POST /v2/person-matches` require an `Idempotency-Key` header of 8 to 128 characters, starting with an ASCII letter or digit and then using only ASCII letters, digits, `.`, `_`, `:`, or `-`. A UUID is valid. Reusing the same key with the same body replays the first successful result instead of doing the work again. `GET /v1/whoami` and `GET /v1/search/sources` do not use an idempotency key.

`POST /v2/person-matches` takes the flat `dapi.person-match.v2` request. For a retry, reuse the same key with the same body; a different body for that key returns `409`. If the POST returns `202`, save `operation.operation_id` and the `Retry-After` value, then poll `GET /v2/person-matches/operations/{operation_id}` with an authorized key for the same owner. Polling does not require an idempotency key and continues the same operation rather than creating another one.

A person match that ends in failure is answered the same on a replay or a poll and charges nothing. The problem carries `operation_id`, on the POST that failed and on a replay, so you can poll that operation. A poll adds `operation_status: failed`, so you can tell an operation that ended from a service that is down.

A `503` with `Retry-After` that left no hold (any hold was released) is not kept under the key while its 24-hour replay window is open. After the `Retry-After`, send the same request under the same `Idempotency-Key` and it runs again, charged once. A key takes up to five attempts, then keeps answering its last `503`. Any other failure is final under its key: start it again under a new `Idempotency-Key`.

* Safe to retry with the same idempotency key: `429`, `503`, and network timeouts where you never saw a response.
* Reusing a key with a different body returns `409`. Generate a new key for genuinely new work.
* A `409` while an operation is still in progress means the first attempt is running. Wait for `Retry-After` and retry the same request. A search whose first page runs long answers this `409` too, with nothing charged; the retry reuses the search it finished.
* Never retry `400`, `403`, `413`, `415`, or `422` unchanged. They will fail the same way.

> [!NOTE]
>
> Send your own `X-Request-Id` (up to 128 letters, digits or `._:-`) to correlate logs, or read the one the API returns. SeekOut never logs your query text, profile payloads, or credentials, so the request id is how a support conversation starts.


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