Method
Parameters
The webhook verification parameters
The raw webhook payload body as a string
The signing secret from webhook creation (starts with
whsec_)Response
Returnsnil if verification succeeds, or an error if verification fails.
Example
Notes
- The verification implements HMAC-SHA256 signature validation
- Timestamp validation prevents replay attacks (default tolerance: 5 minutes)
- The signing secret is provided once when creating the webhook
- All three headers (
svix-id,svix-timestamp,svix-signature) are required