Errors
Errors always have the same shape. code is meant for your code, message for people.
Error format
Every error response contains success: false, an error object and the requestId. details carries extra fields such as retryAfter where useful.
React to code in your code, not to the text in message.
{
"success": false,
"error": {
"code": "not_found",
"message": "Project not found.",
"status": 404
},
"requestId": "6f1c0a52-3f7d-4e0b-9a51-2c1f0b7e4d10"
}
Statuses and codes
| Status | Code | Meaning | What to do |
|---|---|---|---|
| 400 | invalid_request | Body, parameter or cursor invalid. | Fix the request, don't retry it. |
| 401 | unauthorized | Token missing, invalid or revoked. | Check the token. |
| 403 | forbidden | Scope, permission or role missing. | Check the token's scopes. |
| 404 | not_found | Object not found or not visible. | Check the ID and access. |
| 409 | conflict | Conflict, for example webhook limit reached. | Check the state. |
| 429 | rate_limited | Too many requests. | Wait for Retry-After, see rate limits. |
| 429 | daily_write_limit | Daily write quota used up. | Wait until the next day or change plan. |
| 500 | internal_error | Unexpected error. | Retry later, otherwise report it with the requestId. |
Plan limits
When a request hits a limit of your plan, the API answers with 403 and a code of its own.
| Code | Meaning |
|---|---|
plan-api-read-only | The plan allows read access only. |
plan-api-disabled | API access is not available for this workspace. |
plan-webhooks | Webhooks are available from the Team plan. |
plan-project-limit | The plan's project limit is reached. |
Feedback ingest
The feedback endpoint is not part of the token model and answers errors with { error, message, details? }.