Skip to main content
POST
Rotate Webhook Secret

Headers

Authorization
string
required

Bearer [access_token]

Content-Type
string
required

application/json

Path Parameters

subscribeId
integer<int64>
required

ID of the webhook to rotate.

Required range: x >= 1

Response

New secret issued.

subscribeId
integer<int64>

The subscription the secret belongs to.

Example:

1234

secret
string

The new signing secret (whsec_...). Shown only in the rotate response; store it right away.

Example:

"whsec_bG9mdHktc2FtcGxlLXNpZ25pbmctc2VjcmV0LTAwMDE="

previousSecretExpiresAt
string | null

Until when the previous secret keeps signing deliveries (ISO 8601, UTC): 7 days after the rotation. Absent when there was no previous secret. During the overlap each delivery carries a signature for both secrets, so receivers can switch without downtime.

Example:

"2026-11-30T08:00:00Z"