Skip to Content
WhatsApp API by Retention Stack

Errors and limits

Error envelope, common codes, and rate limits.

Error envelope

{
  "success": false,
  "error": { "code": "VALIDATION_ERROR", "message": "…", "details": {} },
  "timestamp": "2026-11-02T00:00:00.000Z"
}

details may carry recovery hints such as nextStep or nextRequest. Read them before retrying.

HTTPMeaningWhat to do
400Bad requestFix the body or query parameters.
422Validation or recipient lookup failedFor RECIPIENT_LOOKUP_FAILED, check the number with check-exists and send to its chatId. Do not resend automatically.
401Missing or invalid credentialCheck the token or key.
402CHANNEL_SUBSCRIPTION_REQUIRED: free-tier monthly limit hit, or the paid period endedUpgrade the session in the console.
403Not your session, session allowance reached, or a session token used where an account key is neededUse an owned session; for the allowance, reuse one from error.details.availableSessions or upgrade one in the console. To create sessions, use your account key.
404Unknown session or resourceList sessions and use data.name.
409Session is in a state that does not allow thisCheck status.
429Rate limitedHonour Retry-After.
500–504API or messaging-service failureSave the X-Request-Id header. Check delivery before retrying; an error does not prove the message was not sent.

Rate limits

Each session has a per-minute request limit and, on the free tier, a monthly request allowance. Paid sessions get a higher per-minute limit. Current numbers are on the pricing page.

Short-window limits return 429 with a Retry-After header (seconds). Wait that long, or back off with exponential delay and jitter. Running out of the monthly allowance returns 402 and does not recover by retrying.

Send requests have no idempotency key. After an uncertain send outcome, check delivery (the message.ack webhook or message history) before sending again, so recipients do not get duplicates.

Include the X-Request-Id response header and the timestamp when you contact support.

Every error tells you what to do

Error responses from the API carry three extra fields next to message:

  • request_id: quote this when you email support; it finds your exact request.
  • hint: the next step in plain English.
  • docs: a link back to this page.
SituationWhat it meansFix
400 VALIDATION_ERRORA field in your request was rejected. details.errors names it.Fix the named field. Phone numbers are digits with the country code, for example 2349012345678.
422 RECIPIENT_LOOKUP_FAILEDWhatsApp could not find the recipient.Check the number with GET /v1/contacts/check-exists, then retry once.
409 session not connectedYour channel is not linked to WhatsApp.Scan the QR code in the dashboard, then retry.
500 INTERNAL_ERRORA failure on our side.Retry once. If it repeats, email support with the request_id.
Was this page helpful?

On this page