Verify every Moflay webhook before using the payload. Signature verification protects your backend from requests that did not come from Moflay’s webhook delivery system.Documentation Index
Fetch the complete documentation index at: https://moflay.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Required headers
Moflay webhooks use Svix-style signing headers:| Header | Description |
|---|---|
svix-id | Unique message identifier |
svix-timestamp | Signed delivery timestamp |
svix-signature | Signature value to verify |
Verify with Node.js
Verification rules
- Read the raw request body before parsing JSON.
- Verify the signature before updating internal records.
- Return a non-2xx response when verification fails.
- Store the signing secret in your backend environment variables.
After verification
After the signature is valid:- Check whether you already processed the webhook message.
- Inspect the event
type. - Update your internal order, invoice, or customer record.
- Return a successful response after your handler finishes.