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"
}
}| Code | Status | Meaning |
|---|---|---|
invalid_request | 400 | The request is not valid. |
invalid_api_key | 401 | The API key is missing, not valid, or revoked. |
account_inactive | 403 | This business's account is not active. |
subscription_inactive | 403 | The API is paused until the subscription is renewed. |
insufficient_access | 403 | This API key's access level does not allow this request. |
not_found | 404 | Not found. |
method_not_allowed | 405 | This method is not allowed here. |
endpoint_limit_reached | 409 | This business already has 10 webhook endpoints, the most it can have. Delete one first. |
payload_too_large | 413 | The request body is too large. |
validation_failed | 422 | The request body is not valid. |
idempotency_key_reused | 422 | This Idempotency-Key was already used with a different body. |
too_many_requests | 429 | Too many requests with a bad API key. Try again in a minute. |
rate_limited | 429 | Too many requests. Try again shortly. |
internal_error | 500 | Something went wrong on our side. Try again. |
Endpoints
| Call | What it does | Key |
|---|---|---|
GET /{...path} | Any other path answers 404 not_found | Any 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.
| Plan | Per key, a minute | All keys, a minute |
|---|---|---|
| Solo | 120 | 240 |
| Base | 300 | 600 |
| Fleet | 600 | 1200 |
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.