Rotate webhook signing secret

POSThttps://app.speybooks.com/api/v1/webhooks/{id}/rotate

Replace 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

idintegerrequired
Webhook 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
idinteger
messagestring
secretstring

Error codes

400Invalid endpoint ID.
404Webhook endpoint not found.