API documentation

Errors and limits

The error shape, every code, request limits and idempotency.

Errors

Every error has the same shape. code never changes inside v1; message is for people and may change. param names the field or parameter at fault, or is null.

{
  "error": {
    "code": "invalid_request",
    "message": "limit must be a whole number from 1 to 100.",
    "param": "limit",
    "request_id": "req_000000000000000000000005"
  }
}
CodeStatusMeaning
invalid_request400The request is not valid.
invalid_api_key401The API key is missing, not valid, or revoked.
account_inactive403This business's account is not active.
subscription_inactive403The API is paused until the subscription is renewed.
insufficient_access403This API key's access level does not allow this request.
not_found404Not found.
method_not_allowed405This method is not allowed here.
endpoint_limit_reached409This business already has 10 webhook endpoints, the most it can have. Delete one first.
payload_too_large413The request body is too large.
validation_failed422The request body is not valid.
idempotency_key_reused422This Idempotency-Key was already used with a different body.
too_many_requests429Too many requests with a bad API key. Try again in a minute.
rate_limited429Too many requests. Try again shortly.
internal_error500Something went wrong on our side. Try again.

Endpoints

CallWhat it doesKey
GET /{...path}Any other path answers 404 not_foundAny key

Request limits

Each key can make a set number of requests a minute, by plan. A business's keys together may make twice that.

PlanPer key, a minuteAll keys, a minute
Solo120240
Base300600
Fleet6001200

Past the limit a request answers 429 with a Retry-After header: the seconds to wait before trying again.

Idempotency

Send an Idempotency-Key header (up to 255 characters) with POST /requests and POST /customers. The same key with the same body within 24 hours returns the first answer instead of adding a second record; the same key with a different body answers 422 idempotency_key_reused. A body over 16 KB answers 413.