Baileys Instance icon

Baileys Instance

Use the wa-instance API built on Baileys 7

Chat → Archive

AI-generated

Summary

Archives or unarchives a WhatsApp chat by sending its JID and the selected archive state to the wa-instance API.

Inputs

  • Chat JID (required) — JID of the chat to update.
  • Archive (required) — Boolean archive state; defaults to true to archive the chat, or set false to unarchive it.

Output shape

A single API response record.

The node returns the API response as JSON. API errors fail the node unless Continue On Fail is enabled.

Examples

Example 1: Archive a chat

Provide the chat JID and leave Archive set to true.

Example 2: Unarchive a chat

Provide the chat JID and set Archive to false.

Links

Discussion