Skip to main content

Archive or Unarchive Chat

PATCH 

/api/v2/instance/:instanceId/chat/:id/archive

This endpoint allows you to archive or unarchive a WhatsApp chat. Archiving a chat is a way to organize and hide old conversations, while unarchiveing a chat makes the conversation visible again in the chat list.

Request

Path Parameters

    instanceId stringrequired

    ID of the instance.

Query Parameters

    id stringrequired

    The id [keyRemoteJid] of the chat to be archived.

Body

required
    archive Archiverequired

    Default value: false

Responses

Operation success.

Schema
    archiveChat boolean

    Default value: true

Loading...