Act
Errors
Every error has one shape and a stable code. Errors an agent can act on carry a hint written to be read by a person or an LLM, so you can pass it straight back to your agent.
On this page
The error body#
{ "error": { "code": "window_closed", "message": "The 24-hour customer service window for this conversation is closed.", "retryable": false, "hint": "The customer service window is closed. Send an approved template instead.", "details": { "window_expired_at": "2026-11-09T19:20:29.000Z", "suggestion": "send_template" }, "provider": { "name": "whatsapp", "code": "131047" }, "request_id": "req_01m74e503r2y8b6c4d0f1g3h5j" }}| Field | Type | Description |
|---|---|---|
error | object | Every error response has this one object. |
error.code | enum (35 values) | Stable code. Branch on it, never on message. |
error.message | string | What went wrong, for people. |
error.retryable | boolean | Whether the same request may succeed later. |
error.retry_after_seconds | integer | may be absentHow long to wait before retrying, when known. 429s also carry Retry-After. |
error.hint | string | may be absentThe next step, written for a person or an LLM agent. |
error.details | object | may be absentStructured context, e.g. issues for validation_failed. |
error.provider | object | may be absentPresent when the channel's provider refused the request. |
error.provider.name | string | The provider, such as whatsapp. |
error.provider.code | string | may be absentThe provider's own numeric or symbolic code. |
error.request_id | string | Quote it when you contact support. |
validation_failed lists what is wrong in details.issues (paths and messages, never the values you sent):
{ "error": { "code": "validation_failed", "message": "The request is invalid.", "retryable": false, "hint": "Fix the fields listed in details.issues and send the request again.", "details": { "issues": [ { "path": "buttons", "message": "Required for type 'buttons'", "code": "custom" } ] }, "request_id": "req_01m74e503r2y8b6c4d0f1g3h5j" }}On GET /v1/events, details.reason: "cursor_expired" means events after the cursor are no longer kept: call again without after.
On Telegram, recipient_blocked carries details.reason: "blocked_by_user" when the user blocked the bot. No event reports the block: you learn it from the refused send.
When to retry#
- Retry only when
retryableistrue, afterretry_after_seconds(or theRetry-Afterheader) when given, otherwise with exponential backoff. - Always retry a POST with the same
Idempotency-Key. Afterdetails.delivery: "unknown"on a message or e-mail send, that retry answers409 conflict(delivery_unknown) for 24 hours and sends nothing: check whether it arrived, and use a new key only if it did not. See Idempotency and retries. - Branch on
code, never onmessage. Codes are never renamed. - A send that fails after the provider accepted it is reported later as a
message.statuswithstatus: "failed"and the same codes inerror.code.
Error codes#
| Code | HTTP | Retryable | What to do |
|---|---|---|---|
unauthorized | 401 | no | Send a valid API key as 'Authorization: Bearer <key>'. |
forbidden | 403 | no | The key lacks the scope the route needs (the hint names it), belongs to another workspace, or the client did not allow this automation. Use a key with the right scope; do not retry unchanged. |
account_suspended | 403 | no | This account is suspended. Contact support. |
not_found | 404 | no | The id does not exist or belongs to another tenant. Check the id and the key. |
validation_failed | 400 | no | Fix the fields listed in details.issues and send the request again. |
conflict | 409 | no | The resource is in a state that does not allow this, or the same Idempotency-Key is still being processed (details.reason: "in_progress"): wait for the first request, then retry with the same key. After a message or e-mail send whose delivery was unknown, the same key answers details.reason: "delivery_unknown" for 24 hours and sends nothing: check whether it arrived, and use a new key only if it did not. On POST /v1/workspaces/:id/api-keys a replay gets details.reason: "already_created" with details.id: the key was shown once, so revoke it and create a new one. |
rate_limited | 429 | yes | Wait for Retry-After seconds. The limit is 1,200 requests a minute per key, bursts of 40 a second. Test events (simulated messages, sandbox sends counting 2, endpoint tests) are limited to 1,000 per organization per UTC day: above that Retry-After runs to 00:00 UTC, and real traffic is not affected. |
idempotency_conflict | 422 | no | This Idempotency-Key was already used with a different body. Use a new key for a new request. |
plan_limit_reached | 402 | no | The plan limit is reached. Upgrade the plan or remove unused resources. |
quota_exceeded | 402 | no | Outbound sends stop above 120 % of the monthly allowance. Upgrade the plan; inbound messages keep flowing. |
subscription_inactive | 402 | no | No active plan: creation and sending are blocked (also booking, changing and cancelling calendar events and sending e-mail), inbound keeps flowing for a 7-day grace period. Update billing in the dashboard. |
feature_not_in_plan | 403 | no | This feature is not included in the current plan. |
channel_not_found | 404 | no | List the available channels with GET /v1/channels. |
channel_not_active | 409 | no | The channel is not active. Check its status with GET /v1/channels/{id}. |
channel_needs_reauth | 409 | no | The provider no longer accepts the channel's authorization, or the authorization stored on our side can no longer be read, for example after a restore. While such a channel is still active, the message is "This channel's stored authorization can no longer be read.", and the hint says to contact Braidport support first when we may be able to restore it. Our next health check (every 30 minutes) then sets the channel's status to needs_reauth with status_reason credentials_unreadable (also the reason of channel.status_changed); sends, templates and Google calls keep the same message and hint for as long as the stored authorization cannot be read. With credentials_unreadable you can contact Braidport support first: we may be able to restore it; otherwise ask the client to reconnect the channel through their connect link. On the connect page's Telegram token paste, the same code with the message "Telegram did not accept this bot token." means only that Telegram refused the pasted token: copy it again from BotFather; no connected channel is affected. |
channel_message_access_disabled | 409 | no | The account owner must turn on 'Allow access to messages' in the Instagram app settings. |
scope_missing | 403 | no | The connected account did not grant the permission this action needs. Ask the client to reconnect and allow it. |
unsupported_message_type | 422 | no | This channel cannot send this message type. Send text instead, or use fallback 'degrade'. |
interactive_limits_exceeded | 422 | no | Reduce the number or length of buttons or rows, or use fallback 'degrade'. |
message_too_long | 422 | no | Shorten the text or split it into several messages. |
recipient_invalid | 422 | no | Check the recipient. Reply with conversation_id from a received message when possible. |
window_closed | 422 | no | The WhatsApp 24-hour window is closed (details.window_expired_at). Send an approved template instead (details.suggestion: "send_template"). |
recipient_unreachable | 422 | no | The recipient cannot receive messages on this channel. Do not retry. |
recipient_blocked | 422 | no | The recipient blocked this account. Do not retry. |
template_not_found | 404 | no | List approved templates with GET /v1/channels/{id}/templates and check name and language. |
template_invalid | 422 | no | Check the template variables against the template definition, and that the template is approved. |
media_invalid | 422 | no | Use a supported file type for this channel. |
media_too_large | 422 | no | The file exceeds this channel's size limit. Send a smaller file or a link. |
media_fetch_failed | 422 | yes | media.url could not be downloaded. Make sure it is public and returns the file directly. |
provider_rate_limited | 429 | yes | The provider is throttling this channel. Wait for Retry-After, then retry. |
provider_billing_issue | 422 | no | The client must fix the payment method of their provider account (for WhatsApp: in WhatsApp Manager). |
provider_account_restricted | 422 | no | The provider restricted this account. The client must resolve it with the provider. |
provider_error | 502 | no | The provider refused the request for a reason without a more specific code. provider.code carries the provider's code; quote request_id to support. |
provider_unavailable | 503 | yes | The provider could not be reached. When details.delivery is "unknown" (and retryable is false) the message may have been sent: on POST /v1/messages and POST /v1/email/send a retry with the same Idempotency-Key never sends it again (it answers 409 conflict with details.reason: "delivery_unknown" for 24 hours). Check whether it went out (for a message: on Messenger and Instagram, a message.sent from Meta's echo; on WhatsApp, a message.status in that conversation with a provider_message_id you have not seen; on Telegram, nothing reports it), and send with a new key only if it did not go out. A booking may be retried with the same key: its event id keeps it from being booked twice. |
internal_error | 500 | yes | Something failed on our side. Retry with backoff and quote request_id if it persists. |