Chat Controller
Archive Chat
- GETGet Information
- POSTCreate Instance Basic
- GETFetch Instances
- GETInstance Connect
- PUTRestart Instance
- GETConnection State
- DELLogout Instance
- DELDelete Instance
- POSTSet Presence
- POSTSend Template
- POSTSend Plain Text
- POSTSend Status
- POSTSend Media
- POSTSend WhatsApp Audio
- POSTSend Sticker
- POSTSend Location
- POSTSend Contact
- POSTSend Reaction
- POSTSend Poll
- POSTSend List
- POSTCheck is WhatsApp
- PUTMark Message As Read
- PUTArchive Chat
- DELDelete Message for Everyone
- POSTSend Presence
- POSTFetch Profile Picture URL
- POSTFind Contacts
- POSTFind Messages
- POSTFind Status Message
- PUTUpdate Message
- GETFind Chats
- POSTFetch Business Profile
- POSTFetch Profile
- POSTUpdate Profile Name
- POSTUpdate Profile Status
- PUTUpdate Profile Picture
- DELRemove Profile Picture
- GETFetch Privacy Settings
- PUTUpdate Privacy Settings
- POSTCreate Group
- PUTUpdate Group Picture
- PUTUpdate Group Subject
- PUTUpdate Group Description
- GETFetch Invite Code
- GETAccept Invite Code
- PUTRevoke Invite Code
- POSTSend Group Invite
- GETFind Group by Invite Code
- GETFind Group by JID
- GETFetch All Groups
- GETFind Group Members
- PUTUpdate Group Members
- PUTUpdate Group Setting
- PUTToggle Ephemeral
- DELLeave Group
Início
Instances
Send Message
Chat Controller
Profile Settings
Profile Settings
Chat Controller
Archive Chat
Archive Chat
PUT
https://{server-url}
/
chat
/
archiveChat
/
{instance}
server-url
string
server-url
string
The URL of your EvolutionAPI server
apikey
string
*
apikey
Required
string
Your authorization key header
instance
string
*
instance
Required
string
ID of the instance to connect
object
lastMessage
object
*
lastMessage
Required
object
Messages to be mark as read
key
object
*
key
Required
object
remoteJid
string
*
remoteJid
Required
string
Chat contact or group remote JID
fromMe
boolean
*
fromMe
Required
boolean
If the message was sent by the instance owner or the contact
id
string
*
id
Required
string
Message ID
archive
boolean
*
archive
Required
boolean
Whether to archive the chat or not
curl --request PUT \
--url https://{server-url}/chat/archiveChat/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"lastMessage": {
"key": {
"remoteJid": "<string>",
"fromMe": true,
"id": "<string>"
}
},
"archive": true
}'
{
"chatId": "553198296801@s.whatsapp.net",
"archived": true
}
Authorizations
apikey
string
headerrequiredYour authorization key header
Path Parameters
instance
string
requiredID of the instance to connect
Body
application/json
lastMessage
object
requiredMessages to be mark as read
lastMessage.key
object
requiredlastMessage.key.remoteJid
string
requiredChat contact or group remote JID
lastMessage.key.fromMe
boolean
requiredIf the message was sent by the instance owner or the contact
lastMessage.key.id
string
requiredMessage ID
archive
boolean
requiredWhether to archive the chat or not
Response
201 - application/json
chatId
string
The ID of the chat.
archived
boolean
Indicates whether the chat is archived.
curl --request PUT \
--url https://{server-url}/chat/archiveChat/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"lastMessage": {
"key": {
"remoteJid": "<string>",
"fromMe": true,
"id": "<string>"
}
},
"archive": true
}'
{
"chatId": "553198296801@s.whatsapp.net",
"archived": true
}