Messages

Message effects

The 13 bubble and full-screen animations, who actually sees them — and the threads an effect can be sent into.

An effect is the animation Messages plays when a message lands — the bubble slamming in, or confetti falling across the whole conversation. On an iMessage line — live or test — it is one key beside the text, with no kind:

{
  "text": "You're in. See you Saturday.",
  "effect": "confetti"
}

Only on the conversation path

An effect rides the line's conversation path, which a thread takes once the transport has confirmed it is a conversation with that one contact — the first time the contact writes into it — and which a group chat the transport has reported takes too. Into any other thread the send takes the recipient path, which carries text alone, and the effect is refused with 422 validation_failed at payload.effect before anything is queued. Nothing is sent without the effect: the refusal is the answer. See which path a send takes.

The 13 effects

effect is a closed enum. Four are bubble effects, which animate the message bubble itself; the other nine are full-screen, taking over the conversation view while they play.

EffectKindWhat it does
impactBubbleThe bubble slams into the thread hard enough to shake the view.
loudBubbleThe bubble swells oversized, shakes, then settles.
gentleBubbleThe bubble arrives small and quiet, then eases up to normal size.
invisibleinkBubbleThe bubble is hidden under shifting static until the reader swipes across it.
confettiFull screenConfetti falls across the conversation.
lasersFull screenLaser beams sweep the screen.
fireworksFull screenFireworks burst over a darkened screen.
balloonsFull screenBalloons rise up the screen.
sparklesFull screenSparkles cross the screen.
spotlightFull screenThe view dims and a spotlight picks the message out.
echoFull screenThe message multiplies and floods the screen.
loveFull screenA heart grows out of the message and pulses.
celebrationFull screenBursts rise and scatter across the screen.

The animations themselves are Apple's, not ours. The exact look of any one of them can change between macOS and iOS releases; the names are what is stable. A name outside the thirteen is 422 validation_failed at payload.effect before anything is queued.

Those names are Apple's identifiers, and they do not always match the label the Messages app shows in its effect picker — impact is the one presented as "Slam". If a particular effect has to be right, send it to yourself once and look at it before you ship it.

A worked example

Here the message is a confirmation that has a genuine reason to feel celebratory — which is the bar worth holding, because an effect on routine traffic gets old quickly. The conversation is one the contact opened, so it is confirmed and the effect goes.

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: signup-4821-welcome" \
  -d '{
    "target": {
      "kind": "conversation",
      "conversationId": "a0000000-0000-4000-8000-000000000001"
    },
    "payload": {
      "text": "You are in. See you Saturday.",
      "effect": "confetti"
    }
  }'

Keeping the enum in your own type, as above, is worth the four lines it costs: effect is a closed set of thirteen names, and a typo like "confeti" is a 422 before anything is queued.

Not everyone sees the animation

Effects are an Apple-client feature

The effect plays on iMessage clients — iPhone, iPad, Mac, Apple Watch. A recipient reading over SMS or RCS, or on any non-Apple client, gets the text and nothing else: the animation is absent, with no marker that one was requested.

This is expected iMessage behaviour, not an API failure. The command still settles succeeded, and there is no field anywhere in the response or on the stream that reports whether the effect rendered.

Even among Apple clients, full-screen effects can be suppressed by the reader. Apple's accessibility settings include an option to stop message effects auto-playing, and a reader who has turned it on sees the message arrive without the animation.

The practical consequence is that an effect must never carry meaning. If your message only makes sense with confetti attached, write a message that makes sense without it.

Failure modes

Two are synchronous — 422 validation_failed at payload.effect, before anything is queued:

  • A name outside the thirteen. Nothing is corrected or dropped.
  • An effect into a thread the transport has neither confirmed nor reported as a group chat — a recipient send to somebody who has not written to the line, or a thread whose contact has not answered yet. That thread takes the recipient path, which carries text alone. Send the text without the effect first; once the contact answers, the conversation is confirmed.

Two depend on the line's device:

  • The device did not take the command within 30 seconds. The command frame settles expired, failureClass: not_run; nothing was sent.
  • The device is offline. The send is refused at once with 503 upstream_unavailable and reason: no_live_connector. Its Idempotency-Key is spent — resend under a new key once the line is back.

On this page