Utopia PaymentsDocs
Webhooks

Delete a webhook endpoint

Deletes the endpoint, along with the deliveries still queued for it, and answers `{ "object": "webhook", "webhook_id", "deleted": true }`. This cannot be undone and the signing secret cannot be recovered afterwards: to stop deliveries and keep both, update the endpoint with `disabled: true` instead. The events themselves are kept and stay readable under `/events`.

DELETE
/webhooks/{id}

Deletes the endpoint, along with the deliveries still queued for it, and answers { "object": "webhook", "webhook_id", "deleted": true }. This cannot be undone and the signing secret cannot be recovered afterwards: to stop deliveries and keep both, update the endpoint with disabled: true instead. The events themselves are kept and stay readable under /events.

Authorization

secretKey
AuthorizationBearer <token>

Your secret key: sk_live_… or sk_test_….

In: header

Path Parameters

id*string

The webhook endpoint's id, which starts with wh_.

Match^wh_[0-9a-f]{32}$

Response Body

application/json

application/json

application/json

curl -X DELETE "https://example.com/webhooks/wh_3f2b8c1e9a4d4e7b8c2a1d5e6f7a8b9c"
{  "object": "webhook",  "webhook_id": "wh_3f2b8c1e9a4d4e7b8c2a1d5e6f7a8b9c",  "deleted": true}