Appearance
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"
}| Field | Meaning |
|---|---|
code | A stable code. Branch on this. |
detail | A message for people. It may change, so don't parse it. |
correlation_id | Identifies 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
| Code | Meaning | What to do |
|---|---|---|
400 Bad Request | The body isn't valid JSON. | Fix the body. Don't retry unchanged. |
401 Unauthorized | Missing, invalid, expired, or revoked credentials. | Check the Authorization: Api-Key <key> header, including the Api-Key prefix. |
403 Forbidden | Not 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 Found | No such resource in this organization. | Confirm the object id. An object from another organization answers 404. |
409 Conflict | The 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 Gone | The link or resource has expired or been withdrawn. | Don't retry. |
415 Unsupported Media Type | The body uses a content type the endpoint doesn't accept. | Send application/json, or multipart/form-data for uploads. |
422 Unprocessable Entity | Validation failed. | Read errors[] and fix the request. |
429 Too Many Requests | Rate limited. | Wait the seconds in Retry-After, then retry. |
500 Internal Server Error | An unexpected error on our side. | Retry reads with backoff. If it persists, contact support with the correlation_id. |
503 Service Unavailable | A 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 a5xxor 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
POSTthat times out may have succeeded. Before retrying a create, check whether the object already exists. - Don't retry other
4xx. A400,401,403,404, or422will fail again unchanged — fix the request instead.
What's next
- Authentication & API keys — resolving
401and403. - Pagination — handling failures mid-page.