Chat
Send presence
Shows typing, recording, or pause for a chat
POST
Send presence
Auth:
TokenAccount or TokenInstance • Rate-limit: Global (100/min) • Idempotent: yes (ephemeral)
Emits a presence indicator (“typing…”, “recording audio…”, or pause) to a chat. Ideal to simulate realistic interaction before sending a message.
Examples
Typing for 5s
Shows the “typing…” indicator on the recipient’s chat and automatically dispatchespause after 5 seconds (thanks to duration: 5). Ideal to precede sending a text message.
Recording audio
Displays “recording audio…” withstate: "recording". Without duration, the indicator stays until WhatsApp expires it naturally (~5–10s) or until you send pause manually.
Cancel indicator
Withstate: "pause", immediately ends any active “typing…” or “recording…” indicator on the chat. Useful when an automated flow ends before the planned duration.
Success response
- With duration
- Without duration
200 OK
Path parameters
Instance name.
Headers
TokenAccount or TokenInstance.
Request body
Phone number or JID of the chat.
typing / recording / pause / paused (case-insensitive).Seconds until auto-pause (0–60). When >0 and
state is typing/recording, the API automatically sends pause after that interval. Ignored when pause/paused.Accepted states
state | Effect |
|---|---|
typing | ”typing…” on the recipient’s chat |
recording | ”recording audio…” |
pause / paused | Cancels any current indicator |
Notes
- Presences are ephemeral, they are not persisted, and WhatsApp expires the indicator on the recipient’s phone in ~5–10s even without an explicit pause.
duration > 60is truncated to 60 (internal cap).- In chats where the recipient disabled presence acknowledgments, the indicator may not appear.
Error responses
| HTTP | error.message | When |
|---|---|---|
| 400 | Invalid request body | Malformed JSON. |
| 400 | Number is required | Missing field. |
| 400 | State is required. Use 'typing', 'recording', or 'pause' | Empty state. |
| 400 | Invalid state. Use 'typing', 'recording', or 'pause' | Outside the enum. |
| 401 | Invalid token | , |
| 404 | Instance not found | , |
| 503 | Instance is not connected to WhatsApp | No active session. |