Stickers
Works on
- iMessage
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": "🎉" }
}'{
"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:
attachToMessageExternalId: theplatformMessageIdof theirmessage.receivedevent.partIndex(optional): which part of a message with several parts, from 0.placement(optional):xandyon the bubble,scale, androtationin 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.
| Error | Means | Fix |
|---|---|---|
422 validation_failed | Not exactly one emoji, or the image is outside its limits | Send one emoji, or a smaller image |
422 validation_failed, conversation_not_confirmed | The person has not written in this conversation yet | Send a text first |
404 unsupported_command, not_on_channel | The line's channel does not send stickers | Send an image in media |