curl --location --request DELETE 'https://api.weya.live/backend/api/webhooks/6890abc123456789abcdef01' \
--header 'x-api-key: YOUR_API_KEY'
{
"status": true,
"code": 200,
"message": "Webhook deleted successfully",
"errorMessage": null,
"data": []
}
Webhooks
Delete Webhook
Delete a webhook and stop sending call outcomes to it.
DELETE
/
api
/
webhooks
/
{webhookId}
curl --location --request DELETE 'https://api.weya.live/backend/api/webhooks/6890abc123456789abcdef01' \
--header 'x-api-key: YOUR_API_KEY'
{
"status": true,
"code": 200,
"message": "Webhook deleted successfully",
"errorMessage": null,
"data": []
}
Overview
Permanently delete a webhook from your organization. It stops in every campaign that uses it at once: calls that end afterwards are not sent to it. Deliveries already queued before the deletion, including scheduled retries, can still be sent.Prerequisites
- An API key for your workspace
- The webhook’s ID (
_idfrom Get Webhooks)
Request
curl --location --request DELETE 'https://api.weya.live/backend/api/webhooks/6890abc123456789abcdef01' \
--header 'x-api-key: YOUR_API_KEY'
Response
{
"status": true,
"code": 200,
"message": "Webhook deleted successfully",
"errorMessage": null,
"data": []
}
Error Handling
Errors returnstatus: false, with the reason in errorMessage.
- 400 Bad Request –
webhookIdisn’t a valid ID. - 401 Unauthorized – Missing or invalid API key.
- 404 Not Found –
Webhook not found or unauthorized: the webhook doesn’t exist in your organization. - 500 Internal Server Error – Unexpected server error.
This can’t be undone. To stop a webhook in only one campaign, remove it from that campaign’s
pushingCrms with Update Campaign instead.Was this page helpful?

