Skip to content
OpenTrain AIOpenTrain AIOpenTrain AIDocs

Ask OpenTrain

Answers from the documentation, with sources.

What would you like to do with OpenTrain?

AI answers can be mistaken. Check the linked sources. Don’t include private account information.

Open app

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 DISABLED webhook cannot be re-enabled. Delete it, fix your endpoint, and create a replacement — then catch up on events missed while disabled with GET /updates, since new subscriptions have no backfill.

Requirements: webhooks:manage scope + the public_api_webhooks feature.

webhookIdstringpathrequired

The webhook subscription ID.

webhookobject

The subscription as it existed at deletion: {id, url, eventTypes, status, createdAt, disabledAt, disabledReason} — same shape as GET /webhooks/{id}.

deletedboolean

Always true on success.

StatuscodeMeaning
401UNAUTHORIZEDMissing or invalid token
403FORBIDDENMissing webhooks:manage scope, or public_api_webhooks disabled
404NOT_FOUNDNo such webhook, or it belongs to another account (details: {resource: "webhooks", webhookId})