WhatsApp Web API (WWebJS) icon

WhatsApp Web API (WWebJS)

Interact with WhatsApp Web API via WWebJS — send messages, manage sessions, chats, groups, contacts and channels

Client → Get Connection State

AI-generated

Summary

Get the current connection state of a WhatsApp session

Inputs

  • sessionId (required) — Session identifier. Select from the list or use an expression. Falls back to credentials default if empty.

Output shape

a single object containing success (boolean), state ("CONNECTED"|null) and message (string) fields

The returned state indicates the connection status; message provides additional detail; success signals API success.

Examples

Example 1: Verify that the WhatsApp session is active before sending a message

Set resource to "client", operation to "Get Connection State", optionally specify a Session ID

Links

Discussion