Rotate webhook signing secret
POST
https://app.speybooks.com/api/v1/webhooks/{id}/rotateReplace the signing secret for a webhook endpoint. The new secret is returned in this response ONLY and cannot be retrieved again; store it now. It takes effect immediately, so update your verification code before or immediately after rotation.
Unlike API key rotation, there is no grace period. The old secret stops working as soon as the new one is set.
Path parameters
idintegerrequiredWebhook endpoint ID whose secret to rotate.
Response
200Signing secret rotated. The new secret is returned ONCE in this response and cannot be retrieved again; update your verification code and store it now.
Show response fields
idintegermessagestringsecretstringError codes
400Invalid endpoint ID.
404Webhook endpoint not found.