WasenderApi - Low Cost WhatsApp API for Developers React to a Message - API Documentation - WasenderApi - Low Cost WhatsApp API for Developers
WasenderAPI

API Documentation

WasenderApi WhatsApp API

React to a Message

Messages

POST/api/messages/react

Add, 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

NameTypeRequiredDescription
keyobjectYesThe original message key. Preserve all fields, including participant when present. No full message object is required.
key.idstringYesThe WhatsApp message ID of the target message, not the integer WasenderApi msgId.
key.remoteJidstringYesThe original JID of the chat containing the message.
key.fromMebooleanYesWhether the target message was sent by your account. Preserve the original boolean value.
textstringYesReaction 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"
    }
}