How sending works
Queued and synchronous sends
Section titled “Queued and synchronous sends”Every message type sent with POST /v1/{phone_number_id}/messages is accepted onto Hello’s
send queue and dispatched fairly across your organization’s traffic, then delivered to
WhatsApp by a worker. The request can either return as soon as the message is queued
(asynchronous) or wait until WhatsApp has accepted it (synchronous).
| Response | When |
|---|---|
200 OK with messages[0].id = WhatsApp’s wamid, message_status: "accepted", hello_id |
Synchronous, and WhatsApp accepted the message within the wait |
202 Accepted with messages[0].id = "", message_status: "queued", hello_id |
Asynchronous, or synchronous and WhatsApp had not accepted it within the wait |
Synchronous is Meta’s behavior: apps written for the WhatsApp Cloud API (Chatwoot, for example)
store messages[0].id as the message’s wamid (when message_status is accepted) and match WhatsApp’s delivery webhooks against
it. Hello does not forward those webhooks, so such an app receives them from WhatsApp directly.
Choosing the mode
Section titled “Choosing the mode”Each API key has a send mode, set on the API Keys page when the key is created and changeable later. Keys are asynchronous unless you choose synchronous, so nothing changes for existing callers. Apps written for Meta’s API (such as Chatwoot) need a synchronous key: they can’t add query parameters or headers, so they use the key’s mode.
A single request can override it. In priority order, the first match wins:
| Order | Request | Mode |
|---|---|---|
| 1 | ?async=true |
Asynchronous |
| 2 | ?sync=true |
Synchronous |
| 3 | Header Prefer: respond-async |
Asynchronous |
| 4 | Header Prefer: wait (or wait=N) |
Synchronous |
| 5 | The API key’s send mode | As set |
sync and async accept true/false, 1/0 and t/f. wait=N is accepted for
compatibility with the Prefer header; the wait is always the same.
Waiting for the result
Section titled “Waiting for the result”curl -X POST "$HELLO_API_URL/v1/$PHONE_NUMBER_ID/messages?sync=true" ...- If WhatsApp accepts the message within 25 seconds, you get
200with WhatsApp’swamidasmessages[0].idandmessage_status: "accepted". - If WhatsApp rejects it within that time, you get
422with codeSEND_FAILED. - If it takes longer, the message is still sent and you get
202withmessage_status: "queued"and an emptymessages[0].id, since nowamidexists yet. PollGET /v1/messages/{id}as usual.
messages[0].hello_id is always Hello’s message ID, the value to use with GET /v1/messages/{id}.
That endpoint also accepts a wamid. A queued message can still end up failed, for example if WhatsApp rejects
the template parameters, so a 202 is not a delivery guarantee.
Idempotent retries
Section titled “Idempotent retries”Send an Idempotency-Key header to make retries safe: a retry with the same key returns the
original message instead of sending a duplicate.
The 24-hour customer-service window
Section titled “The 24-hour customer-service window”WhatsApp only lets a business send free-form messages to someone who has recently messaged it. For each recipient, the window is open for 24 hours after the recipient’s latest message to your number. Each new message from them restarts the 24 hours.
Only the recipient opens the window. A template you send does not open or extend it, so after a template you can send free-form messages only once the recipient replies.
| Message type | Needs an open window? |
|---|---|
template |
No. Send a template to start a conversation or to resume one after the window has closed. |
Every other type (text, image, video, audio, document, sticker, location, contacts, interactive, reaction) |
Yes |
Sending a non-template message outside the window returns 403 with Meta’s re-engagement error
code, 131047:
{ "error": { "message": "Cannot send text message outside 24-hour window; use a template", "type": "OAuthException", "code": 131047, "error_data": { "messaging_product": "whatsapp", "details": "Cannot send text message outside 24-hour window; use a template", "hello_code": "OUTSIDE_24H_WINDOW", "last_inbound_time": "2026-10-22T09:20:00Z", "hours_since": 49.5 }, "fbtrace_id": "3f9c2a1e-7b4d-4c8e-9a15-2d6f8e0b1c47" }}last_inbound_time is when the recipient last messaged you, and hours_since is the number
of hours since then. Both are left out if the recipient has never messaged your number.
To reach the recipient, send an approved template. When they reply, the window opens.
Phone numbers
Section titled “Phone numbers”Send to with the country code: with a leading +, for example +919999999999 or
+16505551234, or as digits only in the WhatsApp ID form webhooks use, 919999999999. A number
without its country code (such as a local 9999999999) is rejected with 400 VALIDATION_ERROR.
The response echoes your input in contacts[0].input and gives the normalized digits (no +)
as contacts[0].wa_id. Sending, window checks and message history all key off the normalized
number, so it doesn’t matter whether you always write the same recipient identically — Hello
normalizes on the way in.
Plans and limits
Section titled “Plans and limits”Your plan can limit what you may send, such as message volume, destination countries or template
categories. A send your plan doesn’t allow is rejected with 403 before it’s queued. See
plan errors.