Skip to main content
POST

Overview

You can archive or unarchive chats in your WhatsApp instance. Archiving a chat removes it from your main chat list but preserves all messages and history.
Archiving a chat doesn’t delete any messages. You can unarchive it at any time to restore it to your main chat list.

Authentication

This endpoint requires authentication via the apikey header.
string
required
Your Evolution API key for authentication.

Path Parameters

string
required
The name of your WhatsApp instance.

Request Body

boolean
required
Set to true to archive the chat, or false to unarchive it.
string
The remote JID of the chat to archive. Required if lastMessage is not provided.
object
Information about the last message in the chat. Can be used instead of chat parameter.

Response

boolean
Confirmation of the archive status.
string
The remote JID of the archived/unarchived chat.

Usage Notes

To unarchive a chat, send the same request with archive: false.
When archiving a chat, new messages will still be received, and the chat may be automatically unarchived if a new message arrives (depending on WhatsApp settings).