Unregister a webhook endpoint
DELETE
/v1/webhooks/{id}
const url = 'https://api.emite.cr/v1/webhooks/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string