Verify webhook signatures

Confirm events came from Nesvra.

Each webhook includes a signature header computed over the raw request body with your endpoint secret.

  1. Read the raw body before parsing.
  2. Compute the HMAC-SHA256 of the timestamp and body with your secret.
  3. Compare to the signature using a constant-time comparison.
  4. Reject events older than your tolerance window.

Respond with a 2xx status quickly; process asynchronously. Failed deliveries are retried with backoff.

Was this helpful?