Delete endpoint

View .md

Delete an outgoing webhook endpoint.


Delete a webhook endpoint when you no longer want Dravo to send events to it. Delivery history for that endpoint is removed with the endpoint.

DELETE/v1/webhooks/{webhook_id}
API key (dra_…) or dashboard JWT

Delete an outgoing webhook endpoint. Existing delivery history is removed with the endpoint.

Authorizationstringheaderrequired

Bearer token. Use a Dravo API key (`dra_...`) or a dashboard JWT.

webhook_idstringpathrequired

Webhook endpoint id.

Error codes

401

Missing or invalid API key / JWT.

const response = await fetch("https://api.dravo.dev/v1/webhooks/{webhook_id}", {  method: "DELETE",  headers: {  "Authorization": "Bearer " + process.env.DRAVO_API_KEY,}});const data = await response.json();console.log(data);
{  "status": 204,  "detail": "Endpoint deleted. Empty response body."}