Skip to content

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#

422json
{  "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"  }}
FieldTypeDescription
errorobjectEvery error response has this one object.
error.codeenum (35 values)Stable code. Branch on it, never on message.
error.messagestringWhat went wrong, for people.
error.retryablebooleanWhether the same request may succeed later.
error.retry_after_secondsintegermay be absentHow long to wait before retrying, when known. 429s also carry Retry-After.
error.hintstringmay be absentThe next step, written for a person or an LLM agent.
error.detailsobjectmay be absentStructured context, e.g. issues for validation_failed.
error.providerobjectmay be absentPresent when the channel's provider refused the request.
error.provider.namestringThe provider, such as whatsapp.
error.provider.codestringmay be absentThe provider's own numeric or symbolic code.
error.request_idstringQuote it when you contact support.

validation_failed lists what is wrong in details.issues (paths and messages, never the values you sent):

400json
{  "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 retryable is true, after retry_after_seconds (or the Retry-After header) when given, otherwise with exponential backoff.
  • Always retry a POST with the same Idempotency-Key. After details.delivery: "unknown" on a message or e-mail send, that retry answers 409 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 on message. Codes are never renamed.
  • A send that fails after the provider accepted it is reported later as a message.status with status: "failed" and the same codes in error.code.

Error codes#

CodeHTTPRetryableWhat to do
unauthorized401noSend a valid API key as 'Authorization: Bearer <key>'.
forbidden403noThe 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_suspended403noThis account is suspended. Contact support.
not_found404noThe id does not exist or belongs to another tenant. Check the id and the key.
validation_failed400noFix the fields listed in details.issues and send the request again.
conflict409noThe 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_limited429yesWait 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_conflict422noThis Idempotency-Key was already used with a different body. Use a new key for a new request.
plan_limit_reached402noThe plan limit is reached. Upgrade the plan or remove unused resources.
quota_exceeded402noOutbound sends stop above 120 % of the monthly allowance. Upgrade the plan; inbound messages keep flowing.
subscription_inactive402noNo 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_plan403noThis feature is not included in the current plan.
channel_not_found404noList the available channels with GET /v1/channels.
channel_not_active409noThe channel is not active. Check its status with GET /v1/channels/{id}.
channel_needs_reauth409noThe 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_disabled409noThe account owner must turn on 'Allow access to messages' in the Instagram app settings.
scope_missing403noThe connected account did not grant the permission this action needs. Ask the client to reconnect and allow it.
unsupported_message_type422noThis channel cannot send this message type. Send text instead, or use fallback 'degrade'.
interactive_limits_exceeded422noReduce the number or length of buttons or rows, or use fallback 'degrade'.
message_too_long422noShorten the text or split it into several messages.
recipient_invalid422noCheck the recipient. Reply with conversation_id from a received message when possible.
window_closed422noThe WhatsApp 24-hour window is closed (details.window_expired_at). Send an approved template instead (details.suggestion: "send_template").
recipient_unreachable422noThe recipient cannot receive messages on this channel. Do not retry.
recipient_blocked422noThe recipient blocked this account. Do not retry.
template_not_found404noList approved templates with GET /v1/channels/{id}/templates and check name and language.
template_invalid422noCheck the template variables against the template definition, and that the template is approved.
media_invalid422noUse a supported file type for this channel.
media_too_large422noThe file exceeds this channel's size limit. Send a smaller file or a link.
media_fetch_failed422yesmedia.url could not be downloaded. Make sure it is public and returns the file directly.
provider_rate_limited429yesThe provider is throttling this channel. Wait for Retry-After, then retry.
provider_billing_issue422noThe client must fix the payment method of their provider account (for WhatsApp: in WhatsApp Manager).
provider_account_restricted422noThe provider restricted this account. The client must resolve it with the provider.
provider_error502noThe 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_unavailable503yesThe 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_error500yesSomething failed on our side. Retry with backoff and quote request_id if it persists.