Send a WhatsApp reaction (emoji) via API
Send an emoji reaction with the CRPRO Hub: where the message_id comes from, the 30-day rule, error 131009 and why a reaction only reaches the sent status.
A reaction is the lightest possible reply: an emoji attached to a customer's message, with no new bubble in the conversation. It is useful as a read acknowledgement, a quick confirmation or a signal that a request was received. The payload is tiny, but it depends on a message id, so the real work is getting hold of the right one. This tutorial sends reactions through the CRPRO Hub and covers the rules Meta applies to them.
How is a reaction sent?
Short answer: send type reaction with the message_id of the message you are reacting to and the emoji. The Hub returns 202 like any other send.
curl -X POST https://crprohub.com/api/v1/channels/CHANNEL_UUID/messages \
-H "Authorization: Bearer hub_pk_EXAMPLE_NOT_REAL" \
-H "Idempotency-Key: react-wamid-HBgLEXAMPLE" \
-H "Content-Type: application/json" \
-d '{
"to": "5521999999999",
"type": "reaction",
"reaction": {
"message_id": "wamid.HBgLEXAMPLE",
"emoji": "\ud83d\udc4d"
}
}'In the Hub's schema, message_id is a required string of up to 500 characters and emoji is a string of up to 16 characters. The to field is the contact who sent, or received, the message. Meta lets you write the emoji either as a Unicode escape sequence or as the character itself; in JSON both reach the API as the same string, so use whichever your tooling handles best.
Where does the message_id come from?
Short answer: from the message.received event for a customer message, or from the message_id returned by your own send for a message you sent.
Every inbound event carries the WhatsApp message id in data.message_id, as described in the webhooks reference. That is the value to pass back. For a message your system sent, the 202 response includes the same kind of identifier. Store it with the conversation record, because looking it up later means searching the channel history. A typical automation reacts to an inbound message the moment it is accepted for processing, which gives the customer instant feedback even if the full answer takes a minute.
// On message.received: acknowledge with a reaction, then continue
async function acknowledge(event) {
await fetch(`https://crprohub.com/api/v1/channels/${event.channel_id}/messages`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.CRPRO_API_KEY}`,
'Idempotency-Key': `ack-${event.data.message_id}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
to: event.data.from,
type: 'reaction',
reaction: { message_id: event.data.message_id, emoji: '\u{1F44D}' },
}),
})
}Deriving the Idempotency-Key from the inbound message id means that a retried webhook delivery cannot produce a second reaction request.
Which rules does Meta apply to reactions?
Short answer: the target message must be in the chat thread, must not be deleted, must not itself be a reaction and must not be more than 30 days old. Otherwise the reaction is not delivered and a webhook reports error 131009.
- Age: the reference says the target must not be more than 30 days old.
- Existence: the message id must match a message in the thread. A made-up or truncated id does not work.
- Type: you cannot react to a reaction message.
- Deleted messages: the reaction is not delivered if the target was deleted by either side.
- Contextual replies: a reaction cannot be used as a reply that quotes another message.
Because the POST only reports acceptance, an invalid target is discovered afterwards, as an error in a webhook. Keep the error handling in the same place as the rest of your status processing, described in the quickstart and the webhooks reference.
Which delivery statuses does a reaction produce?
Short answer: only sent. Meta's reaction reference states that a reaction triggers the sent status webhook and not delivered or read.
This catches monitoring built around the assumption that every outbound message eventually reaches delivered. A reaction that stays at sent forever is not stuck; it is normal. If your dashboard flags messages that never progress past sent, exclude reactions from that rule, or the alert will fire on every acknowledgement you send. The same applies to any timeout logic that waits for delivered: skip it for the reaction type.
Can a reaction be removed or changed?
Short answer: the Meta page consulted for this tutorial does not describe how to remove a reaction, so this article does not state a payload for it.
That is deliberate. A removal call that has not been verified against the official documentation would be a guess, and a guess in an outbound-message API tends to produce either a silent no-op or an error code that costs time to interpret. Check Meta's current reaction reference before building a feature that depends on removing or replacing an emoji, and test it with a number you control. Until then, design the feature so that each message gets at most one reaction from your side.
The Hub's schema does not constrain the emoji beyond its length, so the content is validated by Meta, not by the Hub.
When is a reaction better than a text reply?
Short answer: when the message needs acknowledgement, not an answer. A thumbs-up on a confirmation is clearer than a text that says received.
A reaction does not add a new bubble to the chat, so it keeps a busy conversation readable: the customer sees the emoji on their own message and nothing else changes. Charges for each message type are set by Meta and revised from time to time, so verify how reactions are treated on the current pricing page and in Meta's rate card instead of assuming. Use a text reply whenever the customer expects information, and a reaction when the useful signal is simply that the message was seen. Mixing the two works well: react immediately, then send the text answer when it is ready.
Which patterns work well with reactions?
Short answer: acknowledge receipt, confirm a simple choice and mark that a request has been seen, while a fuller answer is prepared.
Reactions are most helpful as the first, fast signal in an automated conversation. An agent or workflow that needs several seconds to prepare an answer can react immediately, which tells the customer the message arrived. The pattern needs two safeguards. The reaction must be sent once per inbound message, which is why the idempotency key is derived from the message id. And the system should not react to every message in a rapid burst, or the chat turns into a row of emoji; choose the message that opens the exchange.
- React to the first message of an exchange, not to each message in a burst.
- Derive the idempotency key from the inbound message id.
- Exclude reactions from alerts about messages stuck at sent.
- Send the substantive answer as text, not as a reaction.
- Keep the emoji set small and consistent across your flows.
Frequently asked questions
Can a reaction target a message the business sent?
Meta's rule is that the message id must match a message in the chat thread, not be deleted and not be a reaction. The reference does not limit it to customer messages, so check with a test number whether reacting to your own outbound messages suits your use case; the 30-day limit applies either way.
Why does error 131009 appear after a reaction?
Meta reports that code when the message id does not match a message in the thread, was deleted or is a reaction. Check that you are passing the wamid of the right message and that it is recent.
Does a reaction generate delivered and read statuses?
No. Per Meta's reference a reaction triggers only the sent status. Do not treat a reaction that stays at sent as a failure.
What emoji format does the Hub accept?
A string of up to 16 characters. You can use the emoji character or its escaped Unicode form; both are the same value once the JSON is parsed.
Fontes
Documentação oficial da Meta, conferida em 31 de outubro de 2026.