Skip to content

Send messages

Send reaction

React to a message with an emoji, or remove the reaction, with POST /v1/messages on WhatsApp, Instagram and Messenger.

POST /v1/messages with type: "reaction" puts an emoji on a message that already exists in the conversation. It works on WhatsApp, Instagram and Messenger. The fields shared by every send are in Common fields.

  • An API key with the send permission (see Authentication).
  • An Active connection for the channel.
  • A reaction follows the service window: outside 24 hours (windows) the send is refused.
Janela do terminal
curl https://api.messajo.com/v1/messages \
-H "Authorization: Bearer $MESSAJO_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"connection_id": "conn_...",
"to": "5511999999999",
"type": "reaction",
"reaction": {
"message_id": "msg_...",
"emoji": "👍"
}
}'

To take the reaction off, send the same body with an empty emoji.

Janela do terminal
curl https://api.messajo.com/v1/messages \
-H "Authorization: Bearer $MESSAJO_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"connection_id": "conn_...",
"to": "5511999999999",
"type": "reaction",
"reaction": {
"message_id": "msg_...",
"emoji": ""
}
}'
Field Rule
reaction.message_id The target message: the Messajo id (msg_…) or the Meta id. Messajo swaps msg_… for the Meta id before sending. 1 to 256 characters.
reaction.emoji Up to 16 characters. An empty string ("") removes the reaction.

On Instagram, type: "like" sends the heart, with no body. It exists on Instagram only.