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

# Responses and errors

> Response envelope, status codes, and error codes.

## Response envelope

Every JSON response includes a `success` boolean.

```json Success theme={null}
{
  "success": true,
  "creator": { "id": "4f7c1a2e-…", "name": "Jordan Lee" }
}
```

```json Error theme={null}
{
  "success": false,
  "error": "Creator not found",
  "code": "creator_not_found"
}
```

* `error` is a readable message. Its wording can change, so don't match on it.
* `code` is stable and safe to branch on. New codes may be added, but existing codes aren't renamed.

## Naming

* JSON request and response bodies use **camelCase** (`profilePicture`, `createdAt`).
* Query parameters use **snake\_case** (`include_total`, `partner_id`).
* IDs are UUIDs.

## Validation errors

When a request fails validation, the response has status `400` and code `validation_error`. `details` maps each invalid field to its errors:

```json theme={null}
{
  "success": false,
  "error": "Validation failed",
  "code": "validation_error",
  "details": {
    "formErrors": [],
    "fieldErrors": {
      "limit": ["Number must be less than or equal to 200"]
    }
  }
}
```

## Status codes

| Status | Meaning |
| - | - |
| `200` | Success |
| `201` | Resource created |
| `202` | Accepted. The work was queued; see [Async jobs](https://docs.creatorcore.co/guides/async-jobs.md). |
| `204` | Deleted (no body) |
| `400` | Malformed JSON or a validation error |
| `401` | Missing or invalid credentials (`unauthorized`) |
| `403` | Operation not granted (`forbidden`) or add-on not enabled (`feature_disabled`) |
| `404` | Resource not found (`<resource>_not_found`) |
| `409` | Conflict, such as a duplicate (`conflict`) |
| `412` | The `If-Match` precondition failed (`precondition_failed`) |
| `500` | Unexpected server error. Safe to retry with backoff. |

## Payments error codes

Payments endpoints (`/pay/…`, campaign financials payouts) can also return these codes. Bulk payout actions return the same codes per item in `results[].code`.

| Code | Status | Meaning |
| - | - | - |
| `payments_unavailable` | `500` | Payments aren't available right now. Retry later; contact support if it continues. |
| `partner_timeout` | `500` | Our payments partner didn't respond in time. Safe to retry with backoff. |
| `partner_error` | `500` | Our payments partner returned an error we couldn't classify. Retry with backoff. |
| `partner_<reason>` | `500` | Our payments partner rejected the request for a specific reason, such as `partner_invalid_input`, `partner_insufficient_funds` or `partner_no_such_resource`. |
| `kyb_unavailable` | `500` | Business verification couldn't be started. Try again in a moment. |

In these codes and in `routing: "partner"` on payouts, "partner" means our payments partner, the licensed processor that moves the money. It is unrelated to the Partner (client) records in your CreatorCore account, which use `partner_id`. New `partner_` reasons can appear. Treat an unknown one like `partner_error` and show `error` to your team.

A payout that fails after it was accepted reports its reason in the payout's `failureCode` instead of an error response. Those codes are listed under [Webhooks → Payload](https://docs.creatorcore.co/guides/webhooks.md#payload) and are the same in API responses and webhooks.


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