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 Chat By ID

AI-generated

Summary

Get a specific chat by its WhatsApp ID using the selected session

Inputs

  • sessionId (required) — Select the session identifier (falls back to default credentials if empty)
  • chatId (required) — WhatsApp chat identifier; use number@c.us for individuals or number@g.us for groups

Output shape

single chat record

Returns a full chat object containing fields such as id, name, isGroup, isReadOnly, unreadCount, archived, pinned, etc., merged with input fields

Examples

Example 1: Retrieve chat details before sending a message

sessionId chosen from list, chatId set to "34612345678@c.us"

Example 2: Inspect chat metadata for further actions

sessionId selected, chatId entered as "120363XXXXXXXXX@g.us"

Links

Discussion