OpenWA icon

OpenWA

Interact with OpenWA WhatsApp API Gateway

Actions138

Chat → Archive

AI-generated

Summary

Archive a selected WhatsApp chat or restore it to the chat list for a chosen session.

Inputs

  • Session Name or ID (required) — Select the session to use, or provide its ID with an expression.
  • Chat Name or ID (required) — Choose the chat to archive or restore. The dropdown lists up to 1,000 chats; use an expression for another chat ID, including group IDs ending in @g.us.
  • Archive — Defaults to true to archive the chat. Set to false to bring it back to the chat list.

Output shape

A single item containing the API response.

The handler sends the chat ID and archive boolean in a POST request to the session's chat archive route. The exact response fields depend on the API response.

Links

Discussion