Skip to main content
Set webhook_secret when you create the client, then pass the unmodified request body and headers to construct_event. Before implementing verification, configure a notification URL and review the webhook delivery and security model.
Pass the original raw request body. Parsing and re-serializing JSON before verification changes the signed bytes and causes verification to fail.
The verifier checks the webhook signature and rejects requests with a timestamp outside the five-minute replay window.