Rotate a webhook endpoint's signing secret
Rotate a webhook endpoint's signing secret: CustomDomain™ API reference in the webhooks group. Covers parameters, request body, responses and error codes.
Gives the endpoint a new secret, returned once. The old secret keeps signing for overlap_seconds (a day when omitted, at most a week, 0 ends it at once): while it does, each signature header holds one sha256= value per secret, joined by a comma, and a delivery verifies with either secret. Answers 404 where rotation is not switched on for the workspace.
Short-lived widget JWT minted server-side via POST /v1/tokens. Scoped to one application (and optionally one domain).
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/webhooks/string/secret:rotate" \ -H "Content-Type: application/json" \ -d '{}'{ "id": "string", "secret": "string", "previous_secret_expires_at": "2019-08-24T14:15:22Z"}{ "code": "account_not_verifiable", "title": "string", "details": "string", "request_id": "string", "challenge": { "value": "string", "bits": 1, "expires_at": "2019-08-24T14:15:22Z" }}{ "code": "account_not_verifiable", "title": "string", "details": "string", "request_id": "string", "challenge": { "value": "string", "bits": 1, "expires_at": "2019-08-24T14:15:22Z" }}{ "code": "account_not_verifiable", "title": "string", "details": "string", "request_id": "string", "challenge": { "value": "string", "bits": 1, "expires_at": "2019-08-24T14:15:22Z" }}{ "code": "account_not_verifiable", "title": "string", "details": "string", "request_id": "string", "challenge": { "value": "string", "bits": 1, "expires_at": "2019-08-24T14:15:22Z" }}