Skip to main content
Verify webhook signatures to ensure incoming events are authentic.

Prerequisites

You will need:
  • A webhook subscription secret from Subscriptions
  • Access to the raw, unmodified request body in your webhook handler
  • The X-Hook0-Signature request header

Verify signatures

Verify webhook signatures to ensure that requests are authentic. This protects your application from forged webhooks and potential security threats.

How signature verification works

When you create a webhook subscription, the response includes a secret. This secret is used to verify that incoming webhooks are authentic. Each webhook request includes an X-Hook0-Signature header containing:
  • t field - the timestamp
  • h field - list of headers included in the signature
  • v1 field - the signature

Verification implementation

Here’s an example of how to verify webhook signatures:
And in your application: