POST
/api/messages/reactAdd, replace, or remove a WhatsApp message reaction using its original message key.
React to a Message
This endpoint allows you to add, replace, or remove a reaction on a WhatsApp message.
Pass the full key object exactly as received in the message webhook. Do not rebuild it or fill in its nested values manually.
Set text to an emoji, such as š, to add or replace your reaction.
To remove your reaction, send the same key with text set to an empty string ("").
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| key | object | Yes | The original message key. Preserve all fields, including participant when present. No full message object is required. |
| key.id | string | Yes | The WhatsApp message ID of the target message, not the integer WasenderApi msgId. |
| key.remoteJid | string | Yes | The original JID of the chat containing the message. |
| key.fromMe | boolean | Yes | Whether the target message was sent by your account. Preserve the original boolean value. |
| text | string | Yes | Reaction emoji, for example š. Send an empty string ("") to remove your reaction. The field must be present. Maximum length: 64 characters. |
Code Examples
# Add or replace a reaction. Use "text": "" to remove it.
curl -X POST "https://www.wasenderapi.com/api/messages/react" -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"key":{ "id": "3EB06A5E244031B4A5D1", "remoteJid": "[email protected]", "fromMe": false },"text":"š"}'Response Examples
{
"success": true,
"data": {
"success": true,
"message": "Message reaction updated"
}
}