Skip to Content

Error Codes

HTTP Error Shape

Every API error response shares a consistent JSON envelope:

{ "error": { "type": "invalid_request", "message": "A human-readable explanation of what went wrong.", "details": {} } }

HTTP Status Codes

StatusMeaning
401 UnauthorizedMissing, invalid, or revoked API key.
403 ForbiddenThe agent owning this API key is paused.
404 Not FoundResource does not exist (or GET /api/v1/agent called with an organization-wide key).
409 ConflictTarget channel is disabled.
422 Unprocessable EntityValidation error, or Idempotency-Key reused with a different request body.
429 Too Many RequestsKey rate limit exceeded (API_RATE_LIMIT). Wait Retry-After seconds.

Message Delivery error_code Values

When an outbound message fails (status: "failed"), message.error_code is set to one of the following values (and message.error_detail provides provider diagnostics):

error_codeMeaningRetried?
consent_blockedThe organization’s consent policy does not allow sending to this person.No
window_closedWhatsApp’s 24-hour customer service window has expired; send an approved template instead.No
invalid_recipientThe provider reports that the recipient does not exist or cannot be reached.No
provider_rejectedThe provider refused the message.No
unsupported_contentThe channel cannot carry this content and it cannot be degraded to text (e.g. a reaction on Email).No
message_too_longThe text exceeds the channel’s maximum length.No
template_not_foundNo synced template with that name and language exists on the channel.No
template_not_approvedThe Meta template is not approved (pending, rejected, paused, or disabled).No
template_variables_invalidTemplate variables, header, or buttons do not match the template definition.No
bouncedThe recipient’s mail server rejected the email after acceptance (MAILER-DAEMON / DSN).No
channel_unavailableThe channel was disabled or its adapter was unavailable at send time.No
provider_unavailableThe upstream provider kept failing after retries (e.g. SMTP 4xx / 5xx upstream outage).Yes (up to 5x)
rate_limitedThe provider kept rate limiting the channel for too long.Yes (paced)
internal_errorAn unexpected error occurred while sending.—
Last updated on