curl --request DELETE \
--url https://api.example.com/v1/webhooks/{id}{
"data": {
"deleted": true,
"id": "<string>"
}
}Permanently delete a webhook endpoint and stop all future deliveries
curl --request DELETE \
--url https://api.example.com/v1/webhooks/{id}{
"data": {
"deleted": true,
"id": "<string>"
}
}Authorization: Bearer wbk_your_api_key_here
webhooks:write permission.curl -X DELETE https://data.leadlex.com/functions/v1/api-gateway/v1/webhooks/7f3c4d2a-1b8e-4a9c-9d6f-2e5b8c7a1f3d \
-H "Authorization: Bearer wbk_your_api_key_here"
{
"data": {
"deleted": true,
"id": "7f3c4d2a-1b8e-4a9c-9d6f-2e5b8c7a1f3d"
}
}
| Status | Code | Description |
|---|---|---|
| 401 | invalid_key | Invalid or expired API key |
| 403 | insufficient_permissions | Missing webhooks:write permission |
| 404 | webhook_not_found | No webhook with this ID in your workspace |
| 429 | rate_limited | Rate limit exceeded |