Rotate Webhook Endpoint Secret
Issues a new signing secret and returns it once. The previous secret keeps working for grace_seconds so a receiver can switch over without dropping deliveries: during that window every delivery carries the new signature in Doodocs-Signature and the old one in Doodocs-Signature-Previous. Accept either header until you have deployed the new secret, then accept only Doodocs-Signature.
Exactly one previous secret is kept, so a rotation is refused while another one’s window is still open. Wait for that window to close, or pass grace_seconds: 0 to cut over immediately, which also revokes a leaked secret at once.
Required scope: webhooks:manage
Error Codes:
- WEBHOOK_NOT_FOUND: No such endpoint in the caller’s tenant.
- DEVELOPER.WEBHOOK_ROTATION_IN_PROGRESS: A previous secret is still inside its grace window.
Authorizations
Path Parameters
Endpoint id (UUID) whose secret is rotated.
Body
Endpoint id (UUID) whose secret is rotated.
How long the previous secret keeps signing deliveries, in seconds. Omit for the 86400-second (24 hour) default. Pass 0 to drop the previous secret at once — the right choice when it leaked, because a graceful rotation leaves a leaked secret able to forge deliveries for the whole window.