curl --request POST \
--url https://api.wppfy.com/message/react \
--header 'Content-Type: application/json' \
--header 'token: <api-key>' \
--data '
{
"id": "3EB0538DA65A59F6D8A251",
"text": "👍"
}
'{
"id": "owner:generated_message_id",
"messageid": "generated_message_id",
"content": {},
"messageTimestamp": 1672531200000,
"messageType": "reaction",
"status": "Pending",
"owner": "instance_owner"
}{
"error": "Missing Id in Payload"
}{
"error": "No session"
}{
"error": "Message not found"
}{
"error": "Error sending message"
}Send reaction to a message
Sends a reaction (emoji) to a specific message.
Provide only id and text. The chat and the author of the target message are obtained
from the message stored in the instance. The legacy number field is optional and ignored.
This endpoint allows you to:
-
Add or remove reactions on messages
-
Use any valid Unicode emoji
-
React to messages in individual chats or groups
-
Remove existing reactions
-
Check the status of the sent reaction
Supported reaction types:
-
Any valid Unicode emoji (👍, ❤️, 😂, etc)
-
Empty string to remove a reaction
Basic request example:
{
"text": "👍",
"id": "3EB0538DA65A59F6D8A251"
}
Request example to remove a reaction:
{
"text": "",
"id": "3EB0538DA65A59F6D8A251"
}
Response example:
{
"success": true,
"message": "Reaction sent",
"reaction": {
"id": "3EB0538DA65A59F6D8A251",
"emoji": "👍",
"timestamp": 1672531200000,
"status": "sent"
}
}
Response example when removing a reaction:
{
"success": true,
"message": "Reaction removed",
"reaction": {
"id": "3EB0538DA65A59F6D8A251",
"emoji": null,
"timestamp": 1672531200000,
"status": "removed"
}
}
Available parameters:
-
text: Unicode emoji of the reaction (or empty string to remove the reaction)
-
id: ID of the message that will receive the reaction
Common errors:
-
401: Invalid or expired token
-
400: Missing ID or invalid data
-
404: Message not found
-
500: Error sending reaction
Limitations:
-
You can only react to messages sent by other users
-
You cannot react to old messages (more than 7 days)
-
The same user can only have one active reaction per message
curl --request POST \
--url https://api.wppfy.com/message/react \
--header 'Content-Type: application/json' \
--header 'token: <api-key>' \
--data '
{
"id": "3EB0538DA65A59F6D8A251",
"text": "👍"
}
'{
"id": "owner:generated_message_id",
"messageid": "generated_message_id",
"content": {},
"messageTimestamp": 1672531200000,
"messageType": "reaction",
"status": "Pending",
"owner": "instance_owner"
}{
"error": "Missing Id in Payload"
}{
"error": "No session"
}{
"error": "Message not found"
}{
"error": "Error sending message"
}Authorizations
Body
Response
Reaction sent successfully
Unique ID of the reaction message
"owner:generated_message_id"
Generated ID for the reaction message
"generated_message_id"
Reaction details
Message timestamp in milliseconds
1672531200000
Message type
"reaction"
Current message status
"Pending"
Instance owner
"instance_owner"
