Rotate a webhook secret
Webhooks
Rotate a webhook secret
Replace the signing secret without missing a verification.
POST
Rotate a webhook secret
Replaces the webhook’s signing secret. The response includes the new
secret; like Create, this is the only time it is returned, so store it securely. Deliveries are signed at send time, so events (including retries already in flight) are signed with the new secret from this point on.
Returns the webhook object plus its new secret.
Path parameters
The webhook’s
id (UUID).Examples
Response
Errors
| Status | Cause |
|---|---|
404 | Webhook not found or you don’t have access. |