Skip to main content
POST
Archive chat
Auth: TokenAccount or TokenInstanceRate-limit: Global (100/min) • Idempotent: yes

Description

Archives (archive: true) or unarchives (archive: false) a chat. The operation is propagated to WhatsApp via app state, it may take seconds to reflect on the other linked devices.

Examples

Archive

Moves the chat to the archived folder (archive: true), removing it from the main list without deleting history. Syncs with the other linked devices via app state.

Unarchive

Takes the chat out of the archived folder (archive: false) and brings it back to the main list. The operation is propagated to all linked devices.

Success response

The response confirms the operation with chat_jid (JID resolved from number) and archived reflecting the final state. The message changes depending on the value of archive: "Chat archived successfully" or "Chat unarchived successfully".
200 OK

Path parameters

string
required
Instance name.

Headers

Request body

string
required
Phone number, private JID (...@s.whatsapp.net or ...@lid), group JID (...@g.us), or newsletter.
boolean
required
true archives, false unarchives.

Error responses

Error 400

Pin chat

POST /api/chat/pinChat/:instance

Mute chat

POST /api/chat/mute/:instance