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 → Archive Chat

AI-generated

Summary

Archive a WhatsApp chat

Inputs

  • sessionId (required) — Session identifier to use for the API request.
  • chatId (required) — WhatsApp chat ID to archive (format: number@c.us for individuals or number@g.us for groups).

Output shape

a single success acknowledgement object

The response indicates success and may include updated chat details; field set may vary by API version.

Examples

Example 1: Archive a conversation with a specific chat ID

sessionId: 'mySession', chatId: '34612345678@c.us'

Example 2: Archive a group chat using an expression for session ID

sessionId: $workflow.sessionId, chatId: '1234567890-1234567890@g.us'

Links

Discussion