curl -X DELETE "https://api.sitespeak.ai/v1/agency/webhooks/{webhook_id}" \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
const response = await fetch(
'https://api.sitespeak.ai/v1/agency/webhooks/{webhook_id}',
{
method: 'DELETE',
headers: {
'Accept': 'application/json',
'Authorization': 'Bearer YOUR_API_TOKEN'
}
}
);
const data = await response.json();
console.log(data);
Agency
Delete Webhook
Deletes a webhook endpoint and its delivery history
DELETE
/
v1
/
agency
/
webhooks
/
{webhook_id}
curl -X DELETE "https://api.sitespeak.ai/v1/agency/webhooks/{webhook_id}" \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
const response = await fetch(
'https://api.sitespeak.ai/v1/agency/webhooks/{webhook_id}',
{
method: 'DELETE',
headers: {
'Accept': 'application/json',
'Authorization': 'Bearer YOUR_API_TOKEN'
}
}
);
const data = await response.json();
console.log(data);
Available on agency plans. The API token must belong to the agency owner.
Deliveries to the endpoint stop immediately and its delivery log is removed. This cannot be undone. To stop deliveries while keeping the endpoint and its history, set it inactive instead.
Path Parameters
| Name | Type | Description |
|---|---|---|
| webhook_id* | String | The ID of the webhook. |
Headers
| Name | Type | Description |
|---|---|---|
| Accept* | String | application/json |
| Authorization* | String | Bearer |
curl -X DELETE "https://api.sitespeak.ai/v1/agency/webhooks/{webhook_id}" \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
const response = await fetch(
'https://api.sitespeak.ai/v1/agency/webhooks/{webhook_id}',
{
method: 'DELETE',
headers: {
'Accept': 'application/json',
'Authorization': 'Bearer YOUR_API_TOKEN'
}
}
);
const data = await response.json();
console.log(data);
Response
- 200 Success
- 404 Not Found
{
"message": "Webhook deleted."
}
{
"message": "Not found."
}
Last modified on August 18, 2026