Error envelope
All errors follow a consistent format:Error codes
| Code | HTTP Status | Description |
|---|---|---|
validation_error | 400 | Request body or parameters are invalid |
unauthorized | 401 | Missing or invalid API key |
forbidden | 403 | API key does not have access to this resource |
not_found | 404 | The requested resource does not exist |
idempotency_conflict | 409 | A request with this Idempotency-Key already succeeded |
caller_id_not_verified | 422 | The caller ID is not verified for your account |
internal_error | 500 | An unexpected server error occurred |
Idempotency
ThePOST /voice/calls endpoint supports idempotent requests. Include an Idempotency-Key header with a unique UUID to prevent duplicate calls on retry.
409 Conflict with a reference to the original call.