beel_rotate_webhook_secret
Rotate a webhook subscription's HMAC secret, instantly invalidating the old secret. The new secret is returned once for immediate update of verification logic.
Instructions
Generates a new HMAC secret for a webhook subscription. The old secret is immediately invalidated — update your signature verification logic before rotating to avoid missing events during the transition. The new secret is only returned once in this response.
Endpoint: POST /v1/accounts/{account_id}/webhooks/{webhook_id}/secret
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | Your own account, or an account you provisioned. It — not the credential, and not the `BeeL-Active-Company` header — decides which account the operation acts on. An account you do not reach answers `403`, and so does an account that does not exist, so the existence of somebody else's account is never disclosed. | |
| webhook_id | Yes | Subscription of the account in the path. A subscription of another account answers `404`, the same as one that does not exist: under the account resolved from `{account_id}` it simply is not there. | |
| idempotency_key | No | Optional idempotency key for this operation. Omit it and one is derived from the request itself, which makes a blind retry safe but also collapses a SECOND, deliberately identical operation into the first for 24 hours. Set it — to an order id, or anything unique per intended operation — whenever you mean to create something that may look identical to what you just created. |