Error Handling
Handle API errors consistently to build resilient integrations.HTTP status codes
- 200–299: Success
- 400: Bad Request — validation failed or missing fields
- 401: Unauthorized — missing/invalid API key
- 403: Forbidden — insufficient permissions or workspace restrictions
- 404: Not Found — resource doesn’t exist
- 409: Conflict — duplicate or state conflict
- 422: Unprocessable Entity — semantic validation failed
- 429: Too Many Requests — rate limit exceeded
- 5xx: Server error — retry with backoff
Rate limits
- Burst-safe; sustained high volume may be throttled with 429 responses.
- Respect the Retry-After header where present.
Retry strategy
- Idempotent operations: exponential backoff (e.g., 1s, 2s, 4s, 8s; jitter recommended).
- Non-idempotent operations: prefer explicit confirmation endpoints or deduplication keys.
Error body shape
Example
See also
- Security Notes
- Related endpoints in API Reference