Developer docs menu

Developer docs

Message statuses and error codes

What each WHAASS API status code and WhatsApp (Meta) error means, and the fix for the ones you'll hit most.

A send can fail in two places: WHAASS refuses the request (a 4xx), or WhatsApp rejects it (a 502 carrying Meta's error). A 201 only means Meta accepted the message. Whether it reached the phone shows up later as a message.status webhook.

WHAASS status codes

Every error body has a message field that says what went wrong.

Code Meaning Fix
400 Invalid body, WhatsApp not connected, template not approved, or a bad since date Read message. Please connect your WhatsApp Business Account means the account has no number connected in WHAASS.
401 Missing, malformed or deleted API key Check the x-api-key header. See Authentication.
403 API access not switched on, plan without API access, or account restricted See Who can use the API.
404 Chat, template or list not found, or no conversation yet for a text send A text send needs an existing chat. Send a template first.
409 Contact already exists in that list Safe to ignore, or look the contact up first.
429 Rate limit reached Wait for the 15-minute window to reset. See Rate limits.
502 WhatsApp rejected the send message holds Meta's error text. See the table below.
500 Something failed on our side Retry with backoff. If it keeps happening, contact support.

WhatsApp errors you'll see most

When Meta rejects a message, the 502 body contains Meta's own text, which usually includes the code. These are the ones API users hit most often. The full list is in Meta's error code reference.

Meta code What it means Fix
131047 More than 24 hours since the customer last wrote, so free text isn't allowed Send a template instead.
131026 Message undeliverable: the number isn't on WhatsApp, has an outdated app, or hasn't accepted Meta's terms Check the number's country format, then confirm the number uses WhatsApp.
131030 Recipient isn't on the allowed list You're sending from Meta's test number. Add the recipient in Meta, or connect a real number.
131049 Meta chose not to deliver this marketing message, to limit how many the person receives Don't retry straight away. Send later, or use a utility template where it fits.
131056 Too many messages to the same person in a short time Space out messages to that number.
130429 Throughput limit for your number reached Slow down and retry with backoff.
132001 Template doesn't exist in that language Check templateName and language against List templates.
132000 Wrong number of template parameters Send exactly as many components parameters as the template has placeholders.
131042 Payment problem on the WhatsApp Business account Add or fix the payment method in Meta Business Settings.
133010 Your business number isn't registered with the Cloud API Finish phone registration in WHAASS or Meta, then retry.
190 The access token WHAASS uses for your number has expired Reconnect WhatsApp in WHAASS.
368 Number temporarily blocked for policy violations Read the ban guide below before sending more.

When a send succeeds but nothing arrives

The API returns 201 but the customer never sees the message. Most of the time the phone number is formatted wrong for its country:

  • Mexico: numbers stored as 521 + 10 digits may need to be 52 + 10 digits, or the other way round.
  • Argentina: mobile numbers need 549, not 54.
  • Brazil: some numbers are stored with the ninth digit and some without.

Watch for the message.status webhook with delivered. If it doesn't come within a few minutes, the message most likely failed at Meta.

Note: WHAASS webhooks currently send delivered and read only. A message that fails after Meta accepted it shows as failed in the WHAASS inbox, but no webhook event is sent for it yet.

Guides for the hard cases