Delete Webhook URL
Removes a custom webhook URL from a WhatsApp instance. The system webhook cannot be deleted. (Paid users only)
Authentication Required
Login to swap the placeholders with your real Instance ID and Access Token.
Log InNo query parameters required
This endpoint doesn't expect data in the URL.
Best practices
Double-check the URL before deleting to avoid accidentally removing a live integration.
If you only need to pause deliveries, consider disabling the webhook via /v2/webhook/update instead.
After deletion, confirm the remaining webhook list with /v2/session/webhook (GET).
Delete Webhook URL: /v2/webhook/delete
The /v2/webhook/delete endpoint removes a single custom webhook URL from the instance. The system webhook (https://app.wawp.net/api/webhook/{token}) is protected and cannot be deleted; use /v2/webhook/update to disable it instead.
[!IMPORTANT] This endpoint is only available for paid subscription accounts (Unlimited tiers). Free tier users will receive a
403 Forbiddenerror with codesubscription_required.
🎯 When to Use This Endpoint
Use this endpoint when you want to:
- Permanently remove a custom webhook URL you no longer need.
- Clean up old or broken endpoints that keep failing deliveries.
- Offboard a third-party integration without resetting the whole webhook list.
📦 Request Parameters
url(required): The exact custom webhook URL to remove. Can be sent in the request body or as a query parameter.instance_idandaccess_token: Required credentials, accepted in the body or query string.
� Request Samples
cURL (body)
curl -X DELETE "https://api.wawp.net/v2/webhook/delete" -H "Content-Type: application/json" -d '{
"access_token": "YOUR_ACCESS_TOKEN",
"instance_id": "Your_Instance_ID",
"url": "https://my-app.com/webhook"
}'
cURL (query parameter)
curl -X DELETE "https://api.wawp.net/v2/webhook/delete?access_token=YOUR_ACCESS_TOKEN&instance_id=Your_Instance_ID&url=https%3A%2F%2Fmy-app.com%2Fwebhook"
JavaScript (Fetch)
const res = await fetch('https://api.wawp.net/v2/webhook/delete', {
method: 'DELETE',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
access_token: 'YOUR_ACCESS_TOKEN',
instance_id: 'Your_Instance_ID',
url: 'https://my-app.com/webhook'
})
});
const data = await res.json();
console.log(data);
�🛡️ Protected System Webhook
The engine maintains one system webhook for inbox syncing, push notifications, and automation. If you attempt to delete that URL, the API returns error code system_webhook_protected with HTTP 400.
To stop receiving system events, either:
- Set
is_activeto0via/v2/webhook/update. - Remove all events from the system webhook's event list.
Request Parameters
Configure the parameters required to interact with this endpoint. All query and body arguments are listed below with their details.
Request Body
Sent as a JSON objectstring | The 12-character ID of the instance Example: | ||
string | Your API Access Token Example: | ||
string | The exact custom webhook URL to remove Example: |
Request Samples
Use these ready-to-go code snippets to integrate our API into your project quickly and efficiently. Choose your preferred language and library.
Expected Responses
Explore all possible responses and outcomes from the server. We have documented each status code with data examples to make success and error handling easier.
Example
{
"status": "success",
"message": "Webhook deleted successfully.",
"removed": {
"url": "https://my-app.com/webhook",
"events": {
"0": "message",
"1": "message.ack"
},
"is_active": 1,
"enabled": true,
"retries": {
"delay": 2,
"attempts": 15
}
}
}Command Palette
Search for a command to run...