Webhooks
Receive HTTP notifications when crawl events fire
New Webhook
Use HTTPS in production.
Signed deliveries include X-Webhook-Signature: sha256=<HMAC>.
Loading webhooks...
No webhooks yet
| Name | URL | Events | Status | Created | Actions |
|---|
Verifying signatures
If you set a secret, every delivery includes X-Webhook-Signature: sha256=<hex>. Recompute it and compare in constant time.
const crypto = require('crypto');
function verify(secret, rawBody, sigHeader) {
const expected = 'sha256=' + crypto
.createHmac('sha256', secret)
.update(rawBody)
.digest('hex');
// Constant-time compare
const a = Buffer.from(expected);
const b = Buffer.from(sigHeader || '');
return a.length === b.length && crypto.timingSafeEqual(a, b);
}