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.
AuthorizationstringheaderrequiredBearer token. Use a Dravo API key (`dra_...`) or a dashboard JWT.
webhook_idstringpathrequiredWebhook endpoint id.
Error codes
401Missing 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."}