Endpoints

DELETE /webhooks/{id}

Permanently delete a subscription and its delivery history.

DELETE/api/v1/webhooks/{id}secret key

Permanently remove a subscription. The full delivery history for this subscription is cascaded away — there's no soft-delete. If you only want to stop deliveries temporarily, PATCH `active: false` instead.

Request
curl -X DELETE https://sandbox.key2pays.com/api/v1/webhooks/wh_3f6c7b1… \
  -H "Authorization: Bearer sk_test_51N8mP...exampleK3Y"
Response
{ "ok": true, "id": "wh_3f6c7b1…" }