Reply to a message
Any message type can be sent as a reply that quotes an earlier message, by adding context at
the top level of the request, alongside type and the type’s own object.
Example
Section titled “Example”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", "context": { "message_id": "wamid.HBgMOTE5ODc2NTQzMjEwFQIAEhggQzY4RUEzNzBBOEVBNDQ1QjhBRjc5RUY4RUFCNUIwQzQA" }, "type": "text", "text": { "body": "Yes, that one is back in stock." } }'Fields
Section titled “Fields”| Field | Type | Required | Description |
|---|---|---|---|
context.message_id |
string | Yes | The wamid of the message being replied to |
context works with every message type, including template. WhatsApp shows the quoted
message above the new one; if the original message can no longer be found, it’s sent as a
normal, unquoted message.
Common errors
Section titled “Common errors”Same as the message type being sent — see Send a message. An
unknown or too-old message_id doesn’t fail the send; WhatsApp just sends it without the quote.