Request
Headers
Path parameters
string
required
The subscription ID (e.g.
sub_2QkP9aB7xN...).Body
integer
How long, in seconds, the old secret remains valid alongside the new one. Set to
0 for an immediate cutover — the old secret becomes invalid as soon as the request completes. Defaults to 0.Response
200 OK — the newly generated secret.During the grace period
While the grace period is active, thewebhook-signature delivery header contains space-separated v1, signatures for both secrets:
Idempotency
Use theIdempotency-Key header to safely retry this request if you receive a network error or timeout. If the server has already processed a request with the same key, it returns the cached response without generating a new secret. Sending a conflicting body with the same key returns idempotency_conflict.