This API allows users to delete a webhook by its webhook ID.
| Property | Value |
|---|---|
| URL | {{APP_URL}}/api/v1/webhooks/{webhook_id} |
| HTTP Method | DELETE |
| Content Type | application/json |
| Authentication | APIKEY header |
| Parameter Name | Parameter Type | Required | Description |
|---|---|---|---|
webhook_id |
Integer | REQUIRED | Webhook ID |
Below is an example HTTP raw request for the API request.
DELETE {{APP_URL}}/api/v1/webhooks/1
Content-Type: application/json
APIKEY: {{APIKEY}}
On a successful request, the API will return a response like the following:
{
"status": true,
"message": "Webhook deleted successfully",
"data": null
}
If the API request fails, the API will return an error response like the following:
{
"status": false,
"errors": [
{
"message": "Webhook not found"
}
]
}