Skip to content

Unregister a webhook endpoint

DELETE
/v1/webhooks/{id}
curl --request DELETE \
--url https://api.emite.cr/v1/webhooks/example \
--header 'Authorization: Bearer <token>'

The endpoint receives nothing more, and the deliveries still pending for it are dropped. To move to a new URL without missing events, register the new endpoint, switch the receiver to its secret, and only then remove the old one (a new secret for the same URL is a rotation). 404 WEBHOOK_ENDPOINT_NOT_FOUND when the id is not one of the company's endpoints (for an API key, of its environment), or was already removed.

id
required
string