Stickers

Works on
  • iMessage
  • WhatsApp

Send an emoji or an image as a sticker, on its own or stuck onto a message

A sticker is a picture drawn without a bubble. Send kind: "sticker" with the picture, and no text beside it.

Send a sticker

curl -X POST https://api.mapier.ai/v1/commands/message.send \
  -H "Authorization: Bearer $MAPIER_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: order-4821-sticker" \
  -H "x-mapier-version: 2026-12-01" \
  -d '{
    "target": { "conversationId": "a0000000-0000-4000-8000-000000000001" },
    "payload": { "kind": "sticker", "emoji": "🎉" }
  }'
202 Accepted
{
  "commandId": "0192b3e1-…",
  "status": "queued",
  "repeated": false,
  "lineId": "0192a7b0-…",
  "lineSelection": "reused_active_chat",
  "channel": "imessage"
}

Stick it onto a message

On iMessage, give exactly one of emoji (one emoji) or url (an https link to a PNG, GIF or JPEG of at most 512,000 bytes and 618 px on a side). To stick it onto a message the person sent, add:

  1. attachToMessageExternalId: the platformMessageId of their message.received event.
  2. partIndex (optional): which part of a message with several parts, from 0.
  3. placement (optional): x and y on the bubble, scale, and rotation in degrees.
{
  "kind": "sticker",
  "emoji": "❤️",
  "attachToMessageExternalId": "3F2A9C1E-7B44-4D0B-9E2A-1C5D8F0B6A77",
  "placement": { "x": 0.8, "y": 0.2, "scale": 1, "rotation": 15 }
}

A sticker goes only into a conversation the person has written in, or a group chat.

On WhatsApp

A WhatsApp sticker is a WebP image by link, whose path ends in .webp, sent on its own:

{ "kind": "sticker", "url": "https://example.com/stickers/thanks.webp" }

Receive a sticker

A sticker a person sends arrives in a message.received event's attachments, with "isSticker": true. Images and files shows how to download it.

Errors you may see

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

ErrorMeansFix
422 validation_failedNot exactly one emoji, or the image is outside its limitsSend one emoji, or a smaller image
422 validation_failed, conversation_not_confirmedThe person has not written in this conversation yetSend a text first
404 unsupported_command, not_on_channelThe line's channel does not send stickersSend an image in media

Next