Webhook Signatures
Verify that webhook payloads are from Slatis using HMAC-SHA256 signatures.
How it works
Every webhook delivery includes a X-Slatis-Signature header with an HMAC-SHA256 signature of the raw request body, signed with your webhook's secret:
Verify in Node.js
Always use crypto.timingSafeEqual to prevent timing attacks.
Important
- Use the raw body bytes for HMAC computation, not a parsed/re-serialized JSON object.
- The secret is available in the
POST /webhooksresponse (shown once) and can be rotated by deleting and recreating the webhook.