beel_rotate_webhook_secret
Rotate the HMAC signing secret for a webhook subscription to invalidate the old secret and obtain a new one, returned only once for immediate signature verification updates.
Instructions
Generates a new HMAC signing secret for a webhook subscription.
Old secret: immediately invalidated. Update your signature verification logic before rotating, to avoid missing events during the transition.
New secret: returned once, in this response only. It cannot be read again.
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. |