Verify Lettermint webhook signatures with HMAC-SHA256 to ensure authenticity and prevent replay.
Header | Description |
---|---|
x-lettermint-signature | The computed signature using your webhook secret. |
x-lettermint-timestamp | Unix timestamp (seconds) when we generated the signature. |
${timestamp}.${rawBody}
signature format header value:
sha256=<hex_digest>
To verify, recompute the signature on your side using the same secret and compare it with timing-safe equality.