Skip to main content
Version: v0.23.1

Subscribe to a chat's presence

POST 

/api/sessions/:sessionId/presence/subscribe

Asks WhatsApp to start reporting who is online or typing in this chat. Updates arrive as the presence.update webhook and socket event — there is no synchronous answer, because presence cannot be queried from either engine, only received.

The subscription belongs to the connection: it does not survive a restart or an automatic reconnect, and must be re-issued. Subscribe per chat rather than to everything — WhatsApp emits an update on every transition, so a broad subscription is a firehose.

whatsapp-web.js cannot do this at all (it exposes no presence subscribe and emits no presence event) and answers 501.

Request

Responses

Subscribed; updates now arrive as presence.update events