verify_webhook_signature
Verify webhook deliveries locally by checking Svix-style signatures against the raw request body and endpoint secret. Returns validity status and explains mismatches.
Instructions
Locally verify a webhook delivery's Svix-style signature (no API call). Provide the exact raw request body, the svix-id/svix-timestamp/svix-signature headers, and your endpoint signing secret. Returns { valid, reason? }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| secret | Yes | The endpoint signing secret (whsec_... or raw). | |
| payload | Yes | The exact raw request body the server sent (do not re-serialize). | |
| svix_id | Yes | The svix-id header. | |
| tolerance_sec | No | Max clock skew in seconds (default 300; 0 disables). | |
| svix_signature | Yes | The svix-signature header (may contain multiple space-separated sigs). | |
| svix_timestamp | Yes | The svix-timestamp header (unix seconds). |