Skip to main content
PUT
/
api
/
reaction
React to a message with an emoji
curl --request PUT \
  --url https://{host}/api/reaction \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '{
  "messageId": "false_5511999999999@c.us_AAAAAAAAAAAAAAAAAAAA",
  "reaction": "👍",
  "session": "my-session"
}'
{
  "success": true
}

Description

This endpoint allows adding an emoji reaction to a specific message in a chat. To remove a reaction, send an empty string in the reaction field. Note: This endpoint uses the HTTP PUT method, not POST.

Body

{
  "sessionId": "my-session",
  "jid": "5511999999999@s.whatsapp.net",
  "messageId": "3EB0XXXXXX",
  "sender": "value",
  "reaction": "value"
}

Body Parameters

PropertyTypeRequiredDescription
sessionIdstring✅ YesAuthenticated session ID that will add the reaction
jidstring✅ YesChat identifier (WhatsApp JID). Format: 5511999999999@s.whatsapp.net for contacts or 120363XXXXX@g.us for groups
messageIdstring✅ YesMessage ID que receberá a reaction
senderstring✅ YesJID do remetente da message original
reactionstring✅ YesEmoji da reaction (example: ❤️, 👍, 😂). Use string vazia ("") para remover a reaction
{
  "success": true
}

Status Codes

  • 200 - Reaction adicionada/removed successfully
  • 400 - Invalid parameters
  • 401 - Unauthorized session
  • 404 - Session not found

Usage Example

curl -X PUT https://api.wappfy.com.br/api/reaction \
  -H "Content-Type: application/json" \
  -d '{
    "sessionId": "my-session",
    "jid": "5511999999999@s.whatsapp.net",
    "messageId": "3EB0XXXXXX",
    "sender": "5511999999999@s.whatsapp.net",
    "reaction": "❤️"
  }'

Authorizations

apikey
string
header
required

Your Wappfy API key (get it at dash.wappfy.com.br)

Body

application/json
messageId
string
required

Message ID that will receive the reaction

Example:

"false_5511999999999@c.us_AAAAAAAAAAAAAAAAAAAA"

reaction
string
required

Reaction emoji. Send an empty string to remove the reaction

Example:

"👍"

session
string
required

Session name (instanceName)

Example:

"my-session"

Response

200 - application/json

The response is of type object.

I