Show typing

Works on
  • iMessage
  • WhatsApp

Show the typing bubble on the person's phone

POST/v1/commands/typing.start

Shows the typing bubble on the other person's phone, the dots their app draws while somebody is writing, in a one-to-one conversation the person has written in. Takes no arguments: payload is {} or absent.

On an iMessage line Mapier ends the command itself from the channel's answer, and never retries it. So the 202 is followed within the second by a command event, type: "typing.start", messageId: null.

Honors Idempotency-Key: a retry under the same key returns the first command and nothing is sent twice. Separately, on an iMessage line a second signal to the same conversation within five seconds ends succeeded and sends nothing.

Body

Target

Prop

Type

On an iMessage line the conversation at target.conversationId must be a one-to-one conversation the person has written in. A group chat, a conversation the person has never written in, and one the line has not yet confirmed is with one person are each 422 validation_failed at target.conversationId before anything is sent. The last carries reason: conversation_not_confirmed — send the person a text first.

What happens

The 202 says the command was accepted. On an iMessage line, the command event then says:

  • succeeded once the channel took it. That does not promise the phone drew the bubble.
  • failed, with the code of what the channel answered instead: not_found, rate_limited (past the budget typing.start shares with conversation.mark_read, 12 signals per conversation in 60 seconds; the signal is not sent) or upstream_unavailable (the line is offline). It is never retried.

On iMessage the bubble shows for about twelve seconds, or until the line sends into the conversation. There is no call that takes it down; to hold it up, send typing.start again.

On an iMessage line, at most one signal per conversation per five seconds is sent. Another inside that window is accepted and ends succeeded without being sent, since the bubble the first one raised is still up. So a loop that signals every few seconds while an answer is being written uses one signal per five seconds, whatever its pace. A signal held back inside that window uses none of the budget it shares with conversation.mark_read.

A person's own typing is not reported: no stream event or webhook says a person is typing. The signal only goes out.

On a WhatsApp line

The iMessage rules above do not apply there: there is no confirmation step, no five-second window and no shared budget.

Address the person's one-to-one conversation at target.conversationId. A group is 422 validation_failed at target.conversationId.

WhatsApp shows the dots until the line replies, or for 25 seconds, whichever comes first. The same call marks the person's newest message read, and the messages before it.

Typing is refused outside 24 hours of the person's last message, with 403 recipient_not_allowed and reason: outside_service_window, before anything is sent.

Example request

curl https://api.mapier.ai/v1/commands/typing.start \
  -H "Authorization: Bearer $MAPIER_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: typing-0192a7c4" \
  -H "x-mapier-version: 2026-12-01" \
  -d '{
    "target": {
      "kind": "conversation",
      "conversationId": "a0000000-0000-4000-8000-000000000001"
    }
  }'

A common pattern: signal once when you start preparing the answer, send it when it is ready. For an answer that takes longer than the bubble lasts, signal again every ten seconds or so until the send goes out.

Response

202 Accepted
{
  "commandId": "0192b3e2-b4e6-77ca-a8fb-d61394c507ba",
  "status": "queued",
  "repeated": false,
  "lineId": "0192a7b0-3e4f-7051-8c6d-7e8f9a0b1c2d",
  "lineSelection": "reused_active_chat"
}

Then, on the response stream:

event: command — succeeded
{
  "commandId": "0192b3e2-b4e6-77ca-a8fb-d61394c507ba",
  "logicalActionId": "typing-0192a7c4",
  "status": "succeeded",
  "errorCode": null,
  "conversationId": "a0000000-0000-4000-8000-000000000001",
  "type": "typing.start",
  "messageId": null,
  "failureClass": null
}

Errors

Every command can return the errors listed under How commands work › Errors. Specific to this command:

  • 422 validation_failed at target.conversationId for a group chat, a conversation the person has never written in, or one the line has not confirmed (with reason: conversation_not_confirmed).
  • 404 unsupported_command with reason: not_on_channel on a line whose channel does not carry it.

Result codes you will see for this command: not_found, rate_limited, upstream_unavailable. See Error codes.

Guide