Mensajes

React to a message

PUT
/messages/reaction

Adds (or removes, with an empty reaction) an emoji on a message, by message_id. No recipient needed: the chat is in the id.

Autorización

X-Api-Key: wpf_YOUR_KEY

The connection's API key (wpf_...), generated in the dashboard.

Authorization: Bearer wpf_YOUR_KEY

The same key in Authorization: Bearer wpf_... (what n8n, Make and HTTP libraries support out of the box).

Parámetros de header

Idempotency-Key?string

Optional. Repeating the same value within 24 h, with the same API key, returns the first response without sending again. See Idempotency in the introduction.

Cuerpo de la petición

application/json
  1. body
messageId*string

The message's message_id (from the send response, or from the webhook). The chat is already in the id.

reaction*string

The emoji. Empty ("") removes the reaction.

Longitudlength <= 16

Cuerpo de la respuesta

Reaction applied.

application/json
  1. response
data*
curl -X PUT 'https://app.wappfy.io/api/v1/messages/reaction' \  -H 'X-Api-Key: wpf_YOUR_KEY' \  -H 'Content-Type: application/json' \  -d '{  "messageId": "false_5581999999999@c.us_3EB0C767D26A1D5E",  "reaction": "👍"}'
{  "data": {    "message_id": "string",    "reaction": "string"  }}