DEVELOPER DOCUMENTATION
Delete Webhook
Delete a webhook subscription — deliveries stop immediately and the delivery history is removed.
DELETE
/api/public/v1/webhooks/{webhookId}Deletes a webhook subscription. Deliveries stop immediately and the subscription’s delivery history is removed with it. Deletion is permanent — there is no undo.
This is also the recovery path for two situations:
- Lost secret: secrets are shown only once at creation. Delete the subscription and create a new one to get a fresh
whsec_…secret (this is also how you rotate a secret). - Auto-disabled subscription: a
DISABLEDwebhook cannot be re-enabled. Delete it, fix your endpoint, and create a replacement — then catch up on events missed while disabled withGET /updates, since new subscriptions have no backfill.
Requirements: webhooks:manage scope + the public_api_webhooks feature.
Request
Section titled “Request”webhookIdstringpathrequiredThe webhook subscription ID.
Response
Section titled “Response”webhookobjectThe subscription as it existed at deletion: {id, url, eventTypes, status, createdAt, disabledAt, disabledReason} — same shape as GET /webhooks/{id}.
deletedbooleanAlways true on success.
Errors
Section titled “Errors”| Status | code | Meaning |
|---|---|---|
401 | UNAUTHORIZED | Missing or invalid token |
403 | FORBIDDEN | Missing webhooks:manage scope, or public_api_webhooks disabled |
404 | NOT_FOUND | No such webhook, or it belongs to another account (details: {resource: "webhooks", webhookId}) |