Skip to main content

Signature Verification with Raw Body

Wacht follows the Standard Webhooks spec. Use a prebuilt Standard Webhooks library for verification.
import { Webhook } from "standardwebhooks";

const wh = new Webhook(base64_secret);
wh.verify(webhook_payload, webhook_headers);
Headers sent by Wacht:
  1. webhook-id
  2. webhook-timestamp
  3. webhook-signature
  1. Webhook Receiver Security Model
  2. Idempotency and Retry-safe Processing
  3. Webhooks Backend API Reference