Verifying Webhook Signatures
To ensure incoming webhook requests originated from Mailofly and were not tampered with in transit, verify the cryptographic signature sent in the request headers.Webhook Headers
Each request sent by Mailofly includes:mailofly-signature: An HMAC-SHA256 signature calculated over timestamp + raw payload body.mailofly-timestamp: Unix timestamp (in seconds) when the webhook was signed.
Verification Example (Node.js)
Important: Always use the raw, unparsed body when verifying the signature. Parsing the JSON before verification may change whitespace and cause signature mismatches.