Delete an endpoint

Permanently delete a webhook endpoint and its delivery history.

DELETE{BASE_URL}/webhooks/{id}

Deletes the endpoint permanently, with its delivery history. Deliveries still waiting to be retried are not sent. Requires a provider key; the partner header is ignored.

To stop deliveries for a while instead, update the endpoint's status to DISABLED.

Path parameters

idstringrequired
The endpoint's ID.

The response has no data.

Status codes#

StatusCodeMeaning
200—Deleted.
403provider_key_requiredA partner key made the call.
404webhook_endpoint_not_foundYou have no endpoint with that ID — including one you already deleted.
curl -X DELETE "$LOCALOY_BASE_URL/webhooks/cm8wh00k0000000000000002" \
  -H "Authorization: Bearer $LOCALOY_PROVIDER_KEY"
Response · 200
{
  "success": true,
  "message": "Webhook endpoint deleted. Its delivery history was removed with it."
}