Skip to main content
Version: v0.23.1

Set the account's own global presence (appear online or offline)

PUT 

/api/sessions/:sessionId/presence

Publishes whether this account appears online. WhatsApp routes notifications away from the phone while a linked device announces itself online, so a headless bot that never goes offline suppresses the phone's own alerts — set available: false to hand them back.

The setting belongs to the connection: it does not survive a restart or reconnect and must be re-issued after session.status reports one (on Baileys the socket re-announces itself per its connect-time behaviour). Supported on both engines.

Request

Responses

Presence published