Skip to content

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

POST /v1/{phone_number_id}/messages

Sends one WhatsApp message to one recipient. The request body is the WhatsApp Cloud API message body, unchanged: if you already integrate directly with https://graph.facebook.com/<version>/<PHONE_NUMBER_ID>/messages, you can switch to Hello by changing only the base URL and the credential.

POST /v1/{phone_number_id}/messages
Authorization: Bearer hello_live_xxxxxxxxxxxxxxxx
Content-Type: application/json

phone_number_id is the sending number’s numeric WhatsApp phone number ID, shown on the Accounts page of the dashboard and returned by GET /v1/phone_numbers.

Parameter Type Default Description
sync boolean The API key’s send mode Wait up to 25 seconds for WhatsApp to accept the message and return its message ID. See queued and synchronous sends.
async boolean The API key’s send mode Return at once with Hello’s message ID. Wins over sync.
Header Required Description
Prefer No respond-async for an asynchronous response; wait (or wait=N) for a synchronous one. Below the query parameters in priority.
Idempotency-Key No A retry with the same key returns the original message instead of sending again.
Field Type Required Description
messaging_product string No Defaults to and must be whatsapp
recipient_type string No Defaults to individual. group is rejected: Hello doesn’t support the Groups API.
to string Yes Recipient’s number with its country code: +16505551234, or digits only as a WhatsApp ID, 16505551234. See phone numbers.
type string Yes text, template, image, video, audio, document, sticker, location, contacts, interactive or reaction
context object No { "message_id": "<wamid>" } to send as a reply, quoting an earlier message
biz_opaque_callback_data string No Passed through unchanged; returned on delivery webhooks
<type> object or array Yes, matching type The type-specific object. contacts is an array; every other type is an object.

Every field is forwarded to WhatsApp as sent — Hello validates only what it needs to route, window-check and bill the message, so new Cloud API fields work without a Hello release.

Each type has its own page with full examples and fields:

{
"to": "+919999999999",
"type": "text",
"text": { "body": "Your order has shipped." }
}
Terminal window
curl -X POST "$HELLO_API_URL/v1/<your-phone-number-id>/messages" \
-H "Authorization: Bearer $HELLO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": "+919999999999",
"type": "text",
"text": { "body": "Your order has shipped." }
}'

Every type, including template, is accepted onto Hello’s send queue and dispatched fairly across your organization’s traffic; every type except template also needs an open 24-hour window at the time it’s accepted.

The response comes in one of two modes. Each API key has a default send mode, set on the API Keys page: keys are asynchronous unless you choose synchronous (Meta’s behavior, which apps written for Meta’s API, such as Chatwoot, need). A request can override it, highest priority first:

  1. ?async=true: asynchronous
  2. ?sync=true: synchronous
  3. Prefer: respond-async: asynchronous
  4. Prefer: wait or Prefer: wait=N: synchronous
  5. the API key’s send mode

200 OK: accepted by WhatsApp (synchronous)

Section titled “200 OK: accepted by WhatsApp (synchronous)”

Waits up to 25 seconds for WhatsApp to accept the message, then answers in the shape of the WhatsApp Cloud API: messages[0].id is WhatsApp’s message ID (wamid), so apps written for Meta, such as Chatwoot, can store it and match WhatsApp’s delivery webhooks, which WhatsApp sends to them directly.

{
"messaging_product": "whatsapp",
"contacts": [{ "input": "+919999999999", "wa_id": "919999999999" }],
"messages": [
{
"id": "wamid.HBgMOTE5OTk5OTk5OTk5FQIAERgSN0Q1QjE3RjA4QzU2QjBBQUE4AA==",
"message_status": "accepted",
"hello_id": "b7e1d2c3-4f5a-4b6c-8d9e-0a1b2c3d4e5f"
}
]
}

Answers at once, before WhatsApp has the message.

{
"messaging_product": "whatsapp",
"contacts": [{ "input": "+919999999999", "wa_id": "919999999999" }],
"messages": [
{
"id": "",
"message_status": "queued",
"hello_id": "b7e1d2c3-4f5a-4b6c-8d9e-0a1b2c3d4e5f"
}
]
}

A synchronous request that WhatsApp has not accepted within the 25 seconds also gets 202 with message_status: "queued" and an empty messages[0].id, and the message is still sent. messages[0].id is only ever WhatsApp’s wamid; follow a queued message with messages[0].hello_id. If WhatsApp rejects the message during the wait, the response is a 422 instead (see Errors).

Field Type Description
contacts[0].input string to exactly as you sent it
contacts[0].wa_id string Recipient’s number, normalized digits, no +
messages[0].id string WhatsApp’s message ID (wamid) when message_status is accepted (200). When queued (202): empty string ("").
messages[0].message_status string accepted (200) or queued (202)
messages[0].hello_id string (UUID) Always Hello’s message ID, the value to use with GET /v1/messages/{id}. Idempotent retries return the same one.

Follow the message with messages[0].hello_id in GET /v1/messages/{id}. That endpoint also accepts the wamid.

A body of {"messaging_product": "whatsapp", "status": "read", "message_id": "<wamid>"} (no type) is a mark-as-read / typing-indicator request. It’s sent to WhatsApp directly, not queued, and returns 200 {"success": true}. See Mark a message as read.

Errors use the same envelope as Meta’s Cloud API, so error handling written for Meta works unchanged. error.code is WhatsApp’s own code when WhatsApp rejected the message, otherwise Meta’s code for the same situation; Hello’s own code is in error.error_data.hello_code. See Errors for every field.

{
"error": {
"message": "template \"order_shipped\" has no \"fr\" language; available: en, en_US, hi",
"type": "OAuthException",
"code": 132001,
"error_data": {
"messaging_product": "whatsapp",
"details": "template \"order_shipped\" has no \"fr\" language; available: en, en_US, hi",
"hello_code": "TEMPLATE_LANGUAGE_NOT_FOUND",
"available_languages": ["en", "en_US", "hi"]
},
"fbtrace_id": "3f9c2a1e-7b4d-4c8e-9a15-2d6f8e0b1c47"
}
}
Status hello_code error.code Cause
400 VALIDATION_ERROR 100 Invalid JSON, missing to/type, an unsupported type, the wrong shape for the type’s object, a group recipient, or to without its country code
400 TEMPLATE_LANGUAGE_REQUIRED 100 (type: template) The name exists in several languages and none was given — available_languages lists them
401 UNAUTHORIZED 190 Missing, wrong or disabled API key
403 OUTSIDE_24H_WINDOW 131047 A non-template message to a recipient whose 24-hour window is closed
403 TEMPLATE_NOT_APPROVED 132001 The template exists but isn’t APPROVED
403 PLAN_* 10 Your plan doesn’t allow this send. See plan errors.
404 ACCOUNT_NOT_FOUND 100 (subcode 33) No number with this phone_number_id in your organization
404 TEMPLATE_NOT_FOUND 132001 (type: template) No template with this name on the number’s WABA
404 TEMPLATE_LANGUAGE_NOT_FOUND 132001 (type: template) The name exists but not in the requested language
409 ACCOUNT_NOT_REGISTERED 133010 The number hasn’t completed phone registration
422 SEND_FAILED WhatsApp’s own WhatsApp rejected the message. Only returned by a synchronous send or for mark-as-read — otherwise a rejection lands on the message as status: "failed".
429 PLAN_DAILY_LIMIT_REACHED 4 The plan’s daily unique-recipient cap is used up; limit, used, resets_at are in error_data