Reaction messages are emoji-reactions that you can apply to a previous WhatsApp user message that you have received.
When sending a reaction message, only a sent message webhook (status
set to sent
) will be triggered; delivered and read message webhooks will not be triggered.
Use the POST /<WHATSAPP_BUSINESS_PHONE_NUMBER_ID>/messages endpoint to apply an emoji reaction on a message you have received from a WhatsApp user.
POST /<WHATSAPP_BUSINESS_PHONE_NUMBER_ID>/messages
{ "messaging_product": "whatsapp", "recipient_type": "individual", "to": "<WHATSAPP_USER_PHONE_NUMBER>", "type": "reaction", "reaction": { "message_id": "<WHATSAPP_MESSAGE_ID>", "emoji": "<EMOJI>" } }
Placeholder | Description | Example Value |
---|---|---|
String | Required. Unicode escape sequence of the emoji, or the emoji itself, to apply to the user message. | Unicode escape sequence example:
Emoji example: 😀 |
String | Required. WhatsApp message ID of message you want to apply the emoji to. If the message you are reacting to is more than 30 days old, doesn't correspond to any message in the conversation, has been deleted, or is itself a reaction message, the reaction message will not be delivered and you will receive a messages webhook with error code |
|
String | Required. WhatsApp user phone number. |
|
Example request to apply the grinning face emoji (😀) to a previously received user message.
curl 'https://graph.facebook.com/v21.0
/106540352242922/messages' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer EAAJB...' \
-d '
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"to": "+16505551234",
"type": "reaction",
"reaction": {
"message_id": "wamid.HBgLMTY0NjcwNDM1OTUVAgASGBQzQUZCMTY0MDc2MUYwNzBDNTY5MAA=",
"emoji": "\uD83D\uDE00"
}
}'
{ "messaging_product": "whatsapp", "contacts": [ { "input": "+16505551234", "wa_id": "16505551234" } ], "messages": [ { "id": "wamid.HBgLMTY0NjcwNDM1OTUVAgARGBI1RjQyNUE3NEYxMzAzMzQ5MkEA" } ] }