Skip to main content
POST
Rotate Webhook Secret

Overview

Rotates the signing secret. The new secret is returned once in the response. The previous secret remains valid for 24 hours, during which every delivery is signed with both: webhook-signature: v1,<new> v1,<old> (space-separated, per the Standard Webhooks spec). Update your verifier to the new secret any time within the window; no deliveries are missed. A second rotation attempt while that window is still open returns 409 unless you pass force: true. Requires the portfolios:manage scope.

Path Parameters

string
required
Endpoint ID (whk_*).

Query Parameters

boolean
default:"false"
Convenience alias for force in the body. ?force=true is equivalent to {"force": true} in the JSON body.

Body Parameters

boolean
default:"false"
Emergency use only. When true, skips the 24-hour overlap window and immediately invalidates the previous secret. Any receiver still using the previous secret fails signature verification on the next delivery. Without force, rotating while the previous secret is still within its 24-hour window returns 409.
string
Optional human-readable reason (max 500 chars), recorded on the audit event when force: true. Ignored otherwise.

Response

A Webhook with the new secret and bumped secret_version.

Errors

Code Examples