Skip to main content

Request unbanning

Method#

/mobile/request-unbanning#

POST https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/mobile/request-unbanning

Header#

KeyValue
Client-TokenACCOUNT SECURITY TOKEN

Concept#

Method used to request the unbanning of a number.


Attributes#

Required#

AttributesTypeDescription
appealTokenstringToken for unbanning a specific number
descriptionstringDescription to be sent for WhatsApp analysis

Request Body#

{
"appealToken": "Ae1CIGl4Mq7kQ09OQzUnnCx2mTPHxZCjPesdRc8Z1lNFV9d6gvtd5LDW0r7ukVAgtMOP2AxckQM6QeyVp7bL0RbbVac6GQUtMd4tYAZsPOwSIQKlVIoTZs2akgcRd-jvhLKh32roOd0KFPg7hAaYURpIuDXhkaZ_gLJLhmzADNp3lxUNdsIg10q92w",
"description": "I was chatting normally and got banned"
}

Response#

200#

AttributesTypeDescription
successbooleanReturns true if the request was successful
statusstringStatus of the unbanning request (IN_REVIEW, UNBANNED)

Example#

{
"success": true,
"status": "IN_REVIEW | UNBANNED"
}

400#

Invalid request. Check if the data you are sending is in accordance with the documentation above.

405#

In this case, make sure you are correctly sending the method specification, i.e., check if you sent the 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 to the headers of the request, mostly "application/json"

Code#