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

# Errors

> One error shape, stable codes.

Every error has the same body:

```json theme={null}
{
  "error": {
    "code": "validation_error",
    "message": "The request is not valid.",
    "request_id": "req_5f2c1e0a9b3d4c6e7f801234",
    "details": [{ "field": "body.leads", "message": "List should have at least 1 item" }]
  }
}
```

* `code` is stable. Branch on it.
* `message` is for people. It can change, so do not match on it.
* `request_id` is also in the `X-Request-Id` response header, on every response. Send it to us when you ask for help.
* `details` lists the failing fields on a validation error.

## Codes

| Status | Code | When |
| - | - | - |
| 400 | `bad_request` | The request cannot be carried out as sent. |
| 400 | `invalid_cursor` | The cursor is malformed or was issued for different filters. Conversation cursors are not tied to their filters: start again without a cursor when you change the search. |
| 401 | `unauthorized` | Missing or invalid API key. |
| 402 | `subscription_required` | The workspace has no active subscription. |
| 404 | `not_found` | No such resource in this workspace. |
| 409 | `conflict` | The resource is not in a state that allows this, such as pausing a paused campaign. Some state problems are reported as `400 bad_request` instead; read the message. |
| 422 | `validation_error` | A field is missing or invalid. See `details`. |
| 422 | `idempotency_key_reused` | The `Idempotency-Key` was already used with a different request. |
| 429 | `rate_limited` | Too many requests. Wait for `Retry-After` seconds. |
| 500 | `internal_error` | Something failed on our side. |
| 503 | `service_unavailable` | Temporarily unavailable. Wait for `Retry-After` seconds. |

New codes can be added. When you meet one you do not know, fall back on the HTTP status.

An id that belongs to another workspace returns the same `404` as an id that does not exist.


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