Skip to content

Set up your WhatsApp Business API for free. No credit card needed.Set up your WhatsApp API for free.Get started

How sending works

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.

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.

Terminal window
curl -X POST "$HELLO_API_URL/v1/$PHONE_NUMBER_ID/messages?sync=true" ...
  • If WhatsApp accepts the message within 25 seconds, you get 200 with WhatsApp’s wamid as messages[0].id and message_status: "accepted".
  • If WhatsApp rejects it within that time, you get 422 with code SEND_FAILED.
  • If it takes longer, the message is still sent and you get 202 with message_status: "queued" and an empty messages[0].id, since no wamid exists yet. Poll GET /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.

Send an Idempotency-Key header to make retries safe: a retry with the same key returns the original message instead of sending a duplicate.

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.

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.

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.