WapiZap Chat icon

WapiZap Chat

Manage WhatsApp chats via WapiZap API

Archive Chat

AI-generated

Summary

Archives or unarchives a WhatsApp chat via the WapiZap API.

Inputs

  • main (required) — Incoming data items (any data) that trigger the operation. The operation does not depend on the item content except for iteration count.

Output shape

Array of objects, each containing the API response for the processed item. On error and if continueOnFail is enabled, each item may contain { json: { error: string }, pairedItem: { item: index } }. Otherwise, successful responses from the WapiZap archive/unarchive endpoint are returned.

The exact shape of the success response depends on the WapiZap API (typically a confirmation or updated chat object).

Examples

Example 1: Archive a specific chat

Set Instance Name to your instance, Chat ID to the target chat (e.g., 5511999998888@c.us), leave Archive as true (default), and keep API Version at v2 (recommended). Connect any preceding node that provides trigger items.

Example 2: Unarchive a chat

Same as above but set Archive to false.

Discussion