Sending Reaction Messages

Use this api to send reaction messages.

To send a reaction message, make a POST call to /messages and attach a message object with type=reaction .

Parameters

This is the main parameter used in send reaction message requests:

NameDescription

to

Required

WhatsApp ID or phone number for the person you want to send a message to.

The phone numbers in this requests can be provided in any dialable format, as long as they include their country code. It's recommended that you explicitly prefix the country code with a plus sign (+).

Here are some examples of supported phone number formats:

  • +1-000-000-0000
  • +1 (000) 000-0000
  • +1 000 000 0000
  • +1 (000) 000 0000

type

Required
The type of message you want to send. Set this as individual

reaction

.

reaction

Required
A reaction object.

reaction.id

Required
Message ID that you want to react

reaction.emoji

Required

Choose the emoji.

Example

Sample request:

curl -X POST 'https://waofficial.botika.online/api/whatsapp/v1/messages' \
-H 'Authorization: Bearer {{ API_TOKEN }}' \
-H 'Content-Type: application/json' \
-d '{
    "to": "+62821xxxxxx",
    "type": "reaction",
    "reaction": {
        "id": "{{ MESSAGE_ID }}",
        "emoji": "😁",
    }
}'

A successful response includes an object with an identifier for the message:

{
    "data": {
        "id": "{{ MESSAGE_ID }}"
    }
}

Copyright © 2023 Botika Teknologi Indonesia