Notification Channels
Webhook Channel
Forward validated form events to your custom HTTP backend with HMAC-SHA256 signatures.
Webhook Channel
Webhooks allow you to connect Heels directly into your existing infrastructure, CRM, serverless functions (AWS Lambda, Cloudflare Workers, Vercel), or automation tools (Zapier, n8n, Make).
Every incoming event is converted into a standard JSON webhook payload and posted to your target URL with retry backoff and cryptographic signature verification.
Webhook Payload Schema
Heels sends an HTTP POST request with Content-Type: application/json containing the following structure:
{
"event": "form.submission",
"eventId": "e9b28a4c-1d38-46fb-a0f1-4604a11b6582",
"integrationId": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"timestamp": "2026-11-23T10:45:00.123Z",
"isTest": false,
"payload": {
"name": "Alex Mercer",
"email": "[email protected]",
"message": "Interested in custom volume plans."
},
"metadata": {
"ip": "203.0.113.195",
"origin": "https://company.com",
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)..."
}
}Security: HMAC Signature Verification
To guarantee that requests arriving at your webhook handler genuinely originated from your Heels worker service, Heels signs every outgoing request using your configured Signing Secret.
HTTP Headers Sent:
X-Heels-Event: The event type (e.g.form.submissionortest.event).X-Heels-Timestamp: Unix epoch timestamp in milliseconds when the request was dispatched.X-Heels-Signature: Hex-encodedHMAC-SHA256digest calculated over${timestamp}.${raw_body}using your secret.
Verification Code Examples
import crypto from 'crypto';
import express from 'express';
const app = express();
const SIGNING_SECRET = process.env.HEELS_WEBHOOK_SECRET!;
app.post('/api/heels-webhook', express.raw({ type: 'application/json' }), (req, res) => {
const timestamp = req.headers['x-heels-timestamp'];
const signature = req.headers['x-heels-signature'];
const rawBody = req.body.toString('utf8');
// 1. Prevent replay attacks (check if timestamp is within 5 minutes)
const fiveMinutesAgo = Date.now() - 5 * 60 * 1000;
if (Number(timestamp) < fiveMinutesAgo) {
return res.status(400).send('Timestamp expired');
}
// 2. Compute expected HMAC-SHA256
const payloadToSign = `${timestamp}.${rawBody}`;
const expectedSignature = crypto
.createHmac('sha256', SIGNING_SECRET)
.update(payloadToSign)
.digest('hex');
// 3. Constant-time comparison
const isValid = crypto.timingSafeEqual(
Buffer.from(signature as string),
Buffer.from(expectedSignature)
);
if (!isValid) {
return res.status(401).send('Invalid signature');
}
const data = JSON.parse(rawBody);
console.log('Received valid event:', data.eventId);
res.status(200).json({ received: true });
});Retry Policy & Timeout
- Response Expectation: Your endpoint must respond with an HTTP status code in the
2xxrange (e.g.200 OK,201 Created, or204 No Content). - Timeout: The worker enforces a strict 10-second HTTP timeout.
- Retry Schedule: If your server returns
4xx,5xx, or times out, the worker will automatically retry up to 5 times using exponential backoff:- Attempt 1: Immediate
- Attempt 2: After 30 seconds
- Attempt 3: After 2 minutes
- Attempt 4: After 10 minutes
- Attempt 5: After 30 minutes
