Error Handling
Error codes, troubleshooting, and idempotency
All API errors follow a consistent envelope with machine-readable error codes.
Always log the request_id (also in the X-Request-Id header) — it’s required for support lookups.
All POST endpoints accept an Idempotency-Key header for safe retries:
How it works:
409 IDEMPOTENCY_KEY_REUSEDIdempotency keys are scoped per organization and per endpoint. The same key string can be used on different endpoints without collision.
Every response includes a unique request_id in both the response body and the X-Request-Id header. When contacting support, always include this ID for fast diagnosis.