Errors
TL;DR
All errors return {error: {code, message, docs_url}}. Common codes: invalid_api_key (401), not_found (404), rate_limit_exceeded (429).
All errors return a JSON body with an error field.
{ "error": "Invalid API key" }| Code | Name | Description |
|---|---|---|
| 400 | Bad Request | Invalid parameters or missing required fields |
| 401 | Unauthorized | Invalid API key, workspace, or account |
| 403 | Forbidden | Insufficient permissions |
| 404 | Not Found | Resource does not exist |
| 429 | Rate Limited | Too many requests. Wait and retry. |
| 500 | Server Error | Internal error. Contact support if persistent. |
| 501 | Not Implemented | Feature not yet available (e.g. AI endpoints) |
AI