Handle webhooks
View as Markdown ✓ Tested with v3.0.0 · 2026-10-23
AIKloop sends events to your endpoint. Each request has a AIKloop-Signature header, for example t=1791830400,v1=<hex digest>. To verify it:
- Take
t(a Unix timestamp) and the raw request body. - Compute HMAC-SHA256 of
"{t}.{raw_body}"with your webhook signing secret (whsec_...). - Compare the result with
v1using a constant-time comparison. - Reject the event if
tis more than 5 minutes old, to block replays.