Reactions

Works on
  • iMessage
  • WhatsApp

React to a message with an emoji or an iMessage tapback, take it back, and see the reactions people add

Add a reaction puts one emoji on a message, and Remove a reaction takes it back.

React to a message

Name the conversation at target.conversationId, the message at target.messageId (the messageId of its message.received event), and the emoji at payload.emoji.

curl -X POST https://api.mapier.ai/v1/commands/reaction.set \
  -H "Authorization: Bearer $MAPIER_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: react-0192d0a1" \
  -H "x-mapier-version: 2026-12-01" \
  -d '{
    "target": { "conversationId": "a0000000-0000-4000-8000-000000000001", "messageId": "0192d0a1-6a02-7e11-8c4d-2b9f7e3a5d22" },
    "payload": { "emoji": "❤️" }
  }'

You can also name the message by the channel's own id, its platformMessageId, at payload.targetExternalId.

On iMessage, send one of the six tapbacks or any emoji.

On WhatsApp, any emoji. Each sender has one reaction per message, so your line's new reaction replaces its earlier one. A reaction goes only within 24 hours of the person's last message.

Take it back

Send reaction.remove naming the same message.

On iMessage, name the same emoji at payload.emoji.

On WhatsApp, leave emoji out: the line's one reaction comes off.

Receive reactions

A reaction a person adds or takes off arrives as a reaction.added or reaction.removed event, on a stream opened with ?events=reactions or at a webhook. Each names the messageId, the emoji, and who reacted in actor. Changing a reaction is a reaction.added for the new one and a reaction.removed for the old.

Errors you may see

Each of these comes back at once, and nothing is sent.

ErrorMeansFix
422 validation_failedThe message is not in this conversation, or not namedName the message by its messageId
422 validation_failed at payload.emojiThe channel does not take that emoji, or reaction.remove breaks the channel's rule for emojiFollow the channel's rule above
404 unsupported_command, not_on_channelThe line's channel does not take reactionsReply with a text

Next