Rotate Webhook Signing Secret
rotate-webhook-signing-secretRotate a webhook's signing secret to invalidate a leaked credential or as routine hygiene. Returns the new secret; payloads verify with both old and new secrets for 24 hours.
Instructions
Purpose: Replace a webhook's signing secret with a new one — the same action as the dashboard's Rotate button. Returns the new secret.
NOT for: Changing the endpoint URL or subscribed events (use update-webhook), or reading the current secret (use get-webhook).
When to use: User believes the signing secret leaked, or wants to rotate it as routine hygiene. For 24 hours, payloads are signed with both the new and the previous secret, so either one verifies them. After that, only the new secret does. The user has that window to update their endpoint's verification code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| webhookId | Yes | Webhook ID |