message

react to message

Add or remove a reaction emoji to/from a message

post/instances/{id}/client/action/react-to-message

Request

  • Base URL: https://waapi.app/api/v1
  • URL: https://waapi.app/api/v1/instances/{id}/client/action/react-to-message
  • Auth: HTTP bearer

Path parameters

idinteger required

Instance ID

Request body

messageIdstring required

The ID of the message to react to

reactionstring required

A single smiley emoji, or empty string to remove reaction

Example request

{
  "messageId": "true_123456789@c.us_ABC123DEF456",
  "reaction": "😀"
}

Response

Request reached the instance. data.status reports whether the action was carried out; on error data carries message and explanation. Payload: Message reaction result.

status'success' | 'error'

Whether the request reached the instance. success here does not mean the action was carried out — that is reported by data.status, which is the authoritative one. A malformed input arrives as status: success with data.status: error.

Example response

{
  "status": "success",
  "data": {
    "status": "success",
    "data": {
      "reacted": true,
      "reactedWith": "😀",
      "messageId": "true_123456789@c.us_ABC123DEF456"
    }
  },
  "links": {
    "self": "https://waapi.app/api/v1/instances/1/client/action/react-to-message"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.