Settings
Disconnect Instance
Disconnects the instance from WhatsApp. You will need to scan the QR code again to reconnect.
POST
https://api.zapzapapi.com/api/v1/{instanceId}/instance/disconnectAuthentication with the x-api-key and x-api-secret headers.
Parameters
This endpoint takes no parameters.
Request example
curl
curl -X POST "https://api.zapzapapi.com/api/v1/{instanceId}/instance/disconnect" \
-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/{instanceId}/instance/disconnect", {
method: "POST",
headers: {
"x-api-key": "YOUR_API_KEY",
"x-api-secret": "YOUR_API_SECRET",
},
});
console.log(await res.json());Python
import requests
res = requests.post(
"https://api.zapzapapi.com/api/v1/{instanceId}/instance/disconnect",
headers={"x-api-key": "YOUR_API_KEY", "x-api-secret": "YOUR_API_SECRET"},
)
print(res.json())Response example
JSON
{
"info": "The device has been successfully disconnected from WhatsApp. A new QR code will be required for the next connection.",
"instance": {
"status": "disconnected",
"lastDisconnect": "2026-04-06T04:56:41Z",
"lastDisconnectReason": "disconnected by API"
},
"response": "Disconnected"
}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.
