Skip to content

Errors ​

CryptoComply uses standard HTTP status codes, and every error returns the same JSON body. Each operation in the REST reference lists the errors it can return.

The error body ​

Every 4xx and 5xx response has this shape:

json
{
  "detail": "Profile not found.",
  "code": "profile.not_found",
  "correlation_id": "01JA9X5V0M8K3Z7Q2W4E6R8T0Y"
}
FieldMeaning
codeA stable code. Branch on this.
detailA message for people. It may change, so don't parse it.
correlation_idIdentifies the request in CryptoComply's logs. Quote it when you contact support.

Some codes add context keys beside these, such as current_state on a 409.

Validation errors (422) ​

A request that fails validation answers 422 with code: "validation.failed" and one entry per problem in errors[]:

json
{
  "detail": "One or more fields are invalid.",
  "code": "validation.failed",
  "errors": [
    { "pointer": "/name", "code": "required", "detail": "This field is required." },
    { "pointer": "/wallets/2/address", "code": "invalid", "detail": "Enter a valid address." }
  ],
  "correlation_id": "01JA9X5V0M8K3Z7Q2W4E6R8T0Y"
}

Each pointer is a JSON Pointer to the field: /name for a top-level field, /wallets/2/address for a field of the third list item. A problem with a query parameter has an empty pointer and names the parameter in metadata. An unknown query parameter, filter value, or ordering field is refused this way rather than ignored.

Status codes ​

CodeMeaningWhat to do
400 Bad RequestThe body isn't valid JSON.Fix the body. Don't retry unchanged.
401 UnauthorizedMissing, invalid, expired, or revoked credentials.Check the Authorization: Api-Key <key> header, including the Api-Key prefix.
403 ForbiddenNot a member of the organization, or the role or the key's scope lacks the permission.Confirm the organization id, or ask for a key with the permission you need.
404 Not FoundNo such resource in this organization.Confirm the object id. An object from another organization answers 404.
409 ConflictThe resource's current state doesn't allow the action, such as closing a closed alert.Re-fetch the object and act on its current state.
410 GoneThe link or resource has expired or been withdrawn.Don't retry.
415 Unsupported Media TypeThe body uses a content type the endpoint doesn't accept.Send application/json, or multipart/form-data for uploads.
422 Unprocessable EntityValidation failed.Read errors[] and fix the request.
429 Too Many RequestsRate limited.Wait the seconds in Retry-After, then retry.
500 Internal Server ErrorAn unexpected error on our side.Retry reads with backoff. If it persists, contact support with the correlation_id.
503 Service UnavailableA screening provider is unavailable.Retrying later can succeed.

Rate limits ​

Each user may make 600 reads and 120 writes per minute, counted across all of their credentials. A limited request answers 429 with a Retry-After header. To react to changes without polling, use webhooks; otherwise, build polling loops to be considerate.

Retries and backoff ​

  • Reads (GET) are safe to retry. On a 5xx or a network error, retry with exponential backoff — for example 1s, 2s, 4s — with jitter, and cap the attempts.
  • Be careful retrying writes. There is no idempotency key, and a POST that times out may have succeeded. Before retrying a create, check whether the object already exists.
  • Don't retry other 4xx. A 400, 401, 403, 404, or 422 will fail again unchanged — fix the request instead.

What's next ​