Errors
HTTP status codes and error response formats.
The API uses standard HTTP status codes. Error responses include a JSON body:
{ "error": "API key lacks required scope 'agents:write'", "status_code": 403, "timestamp": "2026-10-05 09:12:44" }Validation errors
A missing field or a field of the wrong type returns 422, with each problem and its location
listed in detail:
{ "detail": [ { "loc": ["body", "prompt"], "msg": "Field required", "type": "missing" } ] }Plan limit errors
A request that exceeds a plan limit returns 402. error is an object that identifies the
limit:
{
"error": { "error": "limit_exceeded", "limit": "agent_limit_exceeded", "message": "plan Starter allows 3 default agents" },
"status_code": 402
}Status codes
| Code | Description | Resolution |
|---|---|---|
200, 201, 202 | The request succeeded. | |
400 | The request cannot be processed, for example launching a campaign with no pending contacts. | Read error. Do not retry the same request. |
401 | The API key is missing, malformed, or revoked. | Check the X-API-Key header. |
402 | Calling minutes are exhausted, or a plan limit is reached. | Add minutes or upgrade your plan in the dashboard. |
403 | The API key does not have the required scope. | Use a key with the required scope. |
404 | The resource does not exist or belongs to another organization. | Check the ID. |
409 | The request conflicts with the resource's current state, for example joining a call that has ended. | Read error and check the resource's state. |
413 | The uploaded file exceeds 50 MB. | Upload a smaller file. |
422 | A field is missing or invalid. | Correct the request. |
429 | The API key exceeded its rate limit, or its daily dispatch cap. | For rate limits, wait the number of seconds in the Retry-After header. For the dispatch cap, wait until 00:00 UTC. |
500, 502, 503 | An error occurred at Resonera or a telephony provider. | Retry with exponential backoff. |
Retries
GET requests are safe to retry. Before retrying a POST request that timed out, confirm
whether it took effect. For example, list your campaigns before creating the same batch again,
and check contacts_by_status before launching a campaign again.