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

Session → Get Status

AI-generated

Summary

Retrieve the connection state of a WhatsApp session.

Inputs

  • sessionId (required) — Unique identifier for the session; select from the list or use an expression, falling back to the default session from credentials if empty.

Output shape

a single status record containing fields like success, state, and message (e.g., state can be "CONNECTED", "session_not_found", or "session_not_connected")

Fields may vary slightly by API version; always check the response for possible additional metadata.

Examples

Example 1: Confirm that the selected WhatsApp session is currently connected before sending a message.

Set resource to "session", operation to "getStatus", provide the desired Session ID; use the returned state to conditionally route the workflow.

Example 2: Automatically restart a session that has become disconnected.

Use the Get Status operation to detect a non‑"CONNECTED" state, then trigger a "restart" operation on the same session.

Links

Discussion