Rotate a webhook signing secret
Mint a fresh signing secret. The new plaintext is returned EXACTLY ONCE, here — no endpoint reads it back, so a secret you lose is replaced by rotating again rather than recovered.
Rotation overlaps on purpose. The outgoing secret keeps verifying until previous_secret_expires_at, and every delivery inside that window carries BOTH signatures in the webhook-signature header — so you can deploy the new secret to your verifier whenever you like without dropping an in-flight event. Rotating twice inside the window discards the older secret: only one previous secret is ever live.
url, event_types and status are unchanged.
Requires the webhooks:write scope — Create, edit, and delete your webhook endpoints.
Request
- Base URL: https://api.sendly.now
- URL: https://api.sendly.now/api/v1/webhooks/{id}/rotate-secret
- Auth: one of:
- HTTP bearer
- API key in cookie better-auth.session_token
- OAuth 2 (authorization code, authorization URL https://app.sendly.now/api/auth/oauth2/authorize, token URL https://app.sendly.now/api/auth/oauth2/token, scopes: webhooks:write)
Path parameters
Resource id.
Response
The new signing secret and the moment the previous one stops verifying
Changes
No recorded changes to this operation across all 1 revision of this API.