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 Chats

AI-generated

Summary

Fetch all chats for the selected session.

Inputs

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

Output shape

array of Chat objects (each includes id, name, isGroup, isReadOnly, unreadCount, timestamp, archived, pinned, etc.)

Empty array if no chats; fields may be omitted if not applicable.

Examples

Example 1: Retrieve the full list of chats to display or process them downstream.

Set Resource to Client, Operation to Get Chats; optionally specify a Session ID, otherwise use default.

Example 2: Loop through each chat to send a broadcast message.

After Get Chats, iterate over the returned chats array and use Send Message on each chatId.

Example 3: Debug a session by checking which chats are present.

Run Get Chats, examine the chats output to verify session activity.

Links

Discussion