Delete a Webhook
DELETE/api/webhooks/{id}
Removes the subscription together with its delivery logs and any deliveries still waiting in the queue. Nothing is delivered to that URL afterwards, not even an event that was queued before the deletion.
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| id | Number | Webhook unique ID |
curl -X DELETE "https://yoursite.com/api/webhooks/123" \
-H "authtoken: YOUR_API_TOKEN" Success-Response:
HTTP/1.1 200 OK
{ "status": 200, "messages": { "success": "Record deleted" } } Error-Response:
HTTP/1.1 404 Not Found
{ "status": false, "messages": { "error": "No data were found" } }