Troubleshooting 2 min read
Errors, retries and limits
Recover safely from validation, billing and provider failures.
On this page
HTTP status guide
400: invalid input, sender, cursor or idempotency key. 401: missing, invalid or revoked credentials. 402: credits/payment required. 403: billing/feature/role restrictions. 404: resource unavailable. 409: reply context mismatch, closed service window or idempotency conflict. 423 ONBOARDING_REQUIRED: complete workspace setup or follow recoveryUrl to restore billing. 429: rate limit; honor Retry-After. 502/503: upstream or temporary availability failures. Responses usually include message and may include code; inspect both status and body.
Idempotent sends
Retry the exact same send endpoint, key, sender and JSON body after a transport failure. Keys are scoped to workspace, actor and path, with a 30-day replay window. Changed payloads return IDEMPOTENCY_CONFLICT. IDEMPOTENCY_EXPIRED requires reconciliation before a new action. OPERATION_RELEASED means the failed operation was released without charge; use a new key only for a deliberate new attempt. USAGE_UNRESOLVED can return HTTP 202: the provider outcome is uncertain. Query /usage and wait for webhook/reconciliation instead of sending with a new key.
Customer service window
WHATSAPP_TEMPLATE_REQUIRED returns templateRequired: true with HTTP 409 when Meta rejects free text outside its allowed window. Send an approved template with a new logical action key. A template send does not grant permission to ignore consent or suppression.
Rate and quota handling
Ingress limits per client address are 300 general API requests/minute, 20 authentication requests/minute and 600 provider callback requests/minute. Onboarding-protected routes also share 300 requests/minute per workspace across all its keys and members. Limits are atomic fixed UTC-minute windows shared across replicas; boundary bursts are possible. GET /limits exposes current send entitlements. Chat history and read receipts share a workspace limit of 60 requests per minute. Usage/limit reads share their own 60 requests per minute bucket. Send limits depend on the plan. Bulk text accepts at most 100 messages with bodies up to 4096 characters. Workspaces support 20 active API keys and 20 webhook endpoints. Webhook responses are capped at 64 KiB; oversized responses fail and retry. Daily/monthly limits use UTC. Back off with jitter after 429 and transient errors; do not retry validation, consent or permission failures blindly.
Operational safety
Use HTTPS, rotate/revoke keys, restrict access to message content, and retain only the data your integration needs. Log message IDs, event IDs and operation IDs for correlation without logging API keys, signing secrets or customer message bodies. Build authorization into your own chat frontend so users see only conversations they are entitled to access.
Need help with this guide? Contact support