Skip to content

Errors & Limits ​

Errors ​

Every error response is JSON, shaped as:

json
{ "message": "Human-readable summary" }

Validation failures (422) additionally include a per-field breakdown:

json
{
  "message": "The name field is required.",
  "errors": {
    "name": ["The name field is required."]
  }
}

Errors on a line item or an attendee name its position in the list, such as line_items.1.unit_price or attendees.0.email.

StatusMeaning
401Missing or invalid token.
403The token doesn't have the required permission for this module/action.
404The module, record, or relationship doesn't exist (or the module isn't reachable via the API).
422The request body failed validation, contains an unknown or read-only field, or asks for a link the relationship doesn't allow.
429You've hit the rate limit.

Rate limits ​

Requests are limited to 60 per minute per token (unauthenticated requests are limited per IP address instead). Every response includes X-RateLimit-Limit and X-RateLimit-Remaining headers so you can see how much headroom you have left. Going over the limit returns a 429.

Sending line items inside their order, and creating or updating by a field, keep most syncs to one request per record.

Language ​

Send an Accept-Language header to get error and validation messages back in your preferred language:

Accept-Language: de

Currently supported: English (en) and German (de). Region subtags are fine (de-DE, en-US); only the base language is used. If the header is missing, or names a language Cubrel doesn't have yet, responses fall back to the workspace's default language. This affects every error message, and per-field validation messages, but has no effect on your actual record data (a Lead's name value is whatever you stored; Cubrel doesn't translate your data).

With Accept-Language: de, the validation failure above comes back as:

json
{
  "message": "Das Feld Name ist erforderlich.",
  "errors": {
    "name": ["Das Feld Name ist erforderlich."]
  }
}

What comes back in a response ​

Responses never include anything password/token/secret-shaped, regardless of the module. A small number of specific fields (for example, a user's saved preferences) are also always stripped from that module's response, independent of what your token can otherwise see.