Account and Instances
Delete Instance
Deletes (soft delete) an instance. WhatsApp is disconnected and an activation fee waiver is generated for the next creation.
DELETE
https://api.zapzapapi.com/api/v1/instances/{id}Authentication with the x-api-key and x-api-secret headers.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
id | text | path | Yes | Instance ID |
Request example
curl
curl -X DELETE "https://api.zapzapapi.com/api/v1/instances/{id}" \
-H "x-api-key: YOUR_API_KEY" \
-H "x-api-secret: YOUR_API_SECRET"Node.js
const res = await fetch("https://api.zapzapapi.com/api/v1/instances/{id}", {
method: "DELETE",
headers: {
"x-api-key": "YOUR_API_KEY",
"x-api-secret": "YOUR_API_SECRET",
},
});
console.log(await res.json());Python
import requests
res = requests.delete(
"https://api.zapzapapi.com/api/v1/instances/{id}",
headers={"x-api-key": "YOUR_API_KEY", "x-api-secret": "YOUR_API_SECRET"},
)
print(res.json())Response example
JSON
{
"message": "Instância deletada com sucesso"
}Values are illustrative; the fields follow the real response format.
Other endpoints in this category
Get your API keys
Create your account, connect a number in minutes and start using the API. R$15 per active number/month, with a welcome credit when you create the account, subject to the current campaign.
