Skip to main content
When a request fails, the API returns a non-200 status code. Most errors come with a JSON body that lists what went wrong:
array
One error doesn’t follow this shape yet: when a request with a body is missing Content-Type: application/json, the API returns 400 with errors as a single object instead of an array.

Status codes

If a request times out or the connection drops, you can’t tell whether it was processed. Retry it with the same idempotency key so it can’t happen twice.

Conflicts

A 409 means one of two things:
  • A simultaneous update. Another request was changing the same records at the same time. The body says There was a simultaneous update happening. Please try again. Retry the request.
  • An idempotency key conflict. The body is empty. Either a request with the same Idempotency-Key is still being processed, or the key was already used for a different request. See Idempotency keys.

Partial success

POST /sync/businesses/:business_id/customers/batch processes every valid customer even when some are invalid, and returns 200. In the response, the customers array is in the order you sent them, with null for each customer that failed, and errors gives the reason for each failure with its position in path:
Retrying the whole batch is safe, because sync matches customers by external_id, but you only need to resend the failed ones. POST /sync/businesses/batch is all or nothing: if any business is invalid, the request fails and no businesses are synced.

Limits

Direct sends are messages sent by these endpoints, rather than by a running campaign or trigger:
  • POST /email_templates/:id/send and POST /sms_templates/:id/send
  • POST /campaigns/:id/test_send and POST /triggers/:id/test_send
Every call counts, whoever it’s sent to, so don’t use these endpoints for receipts, reminders or other messages your product sends routinely. The API doesn’t currently apply a general request rate limit. For bulk loads, use the batch sync endpoints rather than one request per record.