- Read
X-Leamout-Timestampas the Unix timestamp Leamout used when signing. - Keep the request body as the exact raw bytes received.
- Construct
<timestamp>.<raw body>. - Compute HMAC-SHA256 using the webhook endpoint’s signing secret.
- Hex-encode the digest and prefix it with
v1=. - Compare your value with
X-Leamout-Signatureusing a constant-time comparison.
Webhooks
Verify webhooks
Verify Leamout webhook signatures using the timestamp and raw request body.
Leamout signs webhook deliveries with HMAC-SHA256.
Each delivery includes these headers:
To verify a delivery:
The webhook signing secret is returned when an endpoint is created or its secret is rotated. Store it as a secret and replace it when you rotate the endpoint secret.