Documentation Index
Fetch the complete documentation index at: https://developer.z-api.io/llms.txt
Use this file to discover all available pages before exploring further.
Overview
This method is responsible for archiving and unarchiving your chats.
Attributes
Your instance ID. Available in the Z-API panel under Instances.
Your Z-API instance token.
Required
Phone number of the chat you want to modify
Action: archive or unarchive
Request Body
{
"phone": "5544999999999",
"action": "archive"
}
Response
200
405
In this case, make sure you are correctly sending the method specification, i.e., check if you sent POST or GET as specified at the beginning of this topic.
415
If you receive a 415 error, make sure to add the “Content-Type” of the object you are sending in the request headers, most commonly “application/json”.