Remove Contacts
#
Method#
/contacts/removeDELETE
https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/contacts/remove
#
HeaderKey | Value |
---|---|
Client-Token | ACCOUNT SECURITY TOKEN |
#
ConceptThis method is responsible for removing WhatsApp contacts from your contact list on your phone.
About This Feature
The method for removing contacts from the WhatsApp list will only work for accounts that have already received the necessary update. Ensure that your WhatsApp account has received this update before using this feature. Otherwise, the operation will not be completed successfully.
#
Request Body#
Response#
200Atributos | Tipo | Descrição |
---|---|---|
success | boolean | |
errors | array |
Example
#
405In this case, make sure you are sending the method specification correctly, meaning check if you sent POST or GET as specified at the beginning of this topic.
#
415If you receive a 415 error, ensure you add the "Content-Type" of the object you are sending in the request headers, which is mostly "application/json".