Set it up
- Create an endpoint. In the console, open a project and add a webhook endpoint (or create it over the API, the CLI or MCP). Copy its URL,
https://app.hookie.ai/{workspace}/{project}/{webhook}. - Point Standard Webhooks at it. In the sender's webhook or endpoint settings, paste the URL and pick whatever event types the sender offers.
- Turn on signature verification. Edit the endpoint, set Signature verification to Standard Webhooks (Svix and others), and paste the sender's signing secret (whsec_…). From then on a request without a valid
webhook-signaturegets a401and nothing is stored or counted. - Forward it to your service. Add a destination: any HTTPS URL, Slack, S3-compatible storage, SQS or Pub/Sub. Each delivery is signed, retried for about a day, and replayable.
Suggested routing
Each endpoint files what it receives into one dataset, through its own criteria. There is no preset for this one, so these are examples to set yourself; criteria read dot paths into the payload, and empty criteria keep every event in one dataset.
| Endpoint | Criteria | Dataset |
|---|---|---|
| Example: one event type | type = user.created | users |
What Hookie checks
A Standard Webhooks sender signs "<webhook-id>.<webhook-timestamp>.<body>" with HMAC-SHA256, keyed with the base64 part of its whsec_ secret, and sends one or more v1,<base64> signatures in webhook-signature. Hookie accepts any matching v1 (a sender rolling its secret sends two), reads Svix's svix-id, svix-timestamp and svix-signature as well, and refuses a timestamp more than 5 minutes from now.
An event the criteria do not match is still answered 201 and kept as a submission, marked filtered, so you can see what was turned away and why.
Verify what Hookie forwards
Your service should check Hookie's signature the same way Hookie checks the sender's. Every delivery to an HTTPS destination carries Hookie-Signature, keyed with that destination's signing secret (whsec_…, which an owner or admin can reveal on the destination). It also carries the Standard Webhooks headers, so any Standard Webhooks library verifies it too.
import crypto from "node:crypto";
// Hookie-Signature: t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>">
// keyed with your destination's signing secret (whsec_...). During a secret
// rotation it carries one v1 per secret, so accept the request if ANY matches.
export function verifyHookie(rawBody, header, secret, toleranceSeconds = 300) {
if (!header) return false;
const parts = header.split(",").map((p) => p.trim().split("="));
const t = parts.find(([k]) => k === "t")?.[1];
const signatures = parts.filter(([k]) => k === "v1").map(([, v]) => v);
if (!/^[0-9]{1,12}$/.test(t ?? "") || !signatures.length) return false;
if (Math.abs(Date.now() / 1000 - Number(t)) > toleranceSeconds) return false;
const expected = crypto.createHmac("sha256", secret).update(`${t}.`).update(rawBody).digest("hex");
return signatures.some((s) => typeof s === "string" && Buffer.byteLength(s) === expected.length &&
crypto.timingSafeEqual(Buffer.from(s), Buffer.from(expected)));
}Wired into an Express receiver, with the raw body the signature covers:
import express from "express";
import { verifyHookie } from "./verify-hookie.js";
const app = express();
// The RAW body: a signature is over the exact bytes sent, not re-serialised JSON.
app.post("/hooks/hookie", express.raw({ type: "*/*" }), (req, res) => {
const body = req.body;
if (!verifyHookie(body, req.get("Hookie-Signature"), process.env.HOOKIE_SIGNING_SECRET)) {
return res.sendStatus(401);
}
const event = JSON.parse(body.toString("utf8"));
// The default envelope carries its event ID inside the verified body.
// Store that ID with the work so retries and manual replays are idempotent.
console.log(event.id, event);
res.sendStatus(200);
});
app.listen(3000);Check Standard Webhooks's signature yourself
Hookie does this for you on ingest. If you also receive these requests directly somewhere else, this is the same check in plain Node, with no dependencies, taking the request's headers by lower-case name as Node and Express give them:
import crypto from "node:crypto";
// webhook-signature: "v1,<base64 HMAC-SHA256 of '<id>.<timestamp>.<raw body>'>" (space-separated),
// keyed with the base64 after "whsec_". Svix sends the same three as svix-id, svix-timestamp, svix-signature.
export function verifyStandardWebhook(rawBody, headers, secret, toleranceSeconds = 300) {
const id = headers["webhook-id"] ?? headers["svix-id"];
const timestamp = headers["webhook-timestamp"] ?? headers["svix-timestamp"];
const signature = headers["webhook-signature"] ?? headers["svix-signature"];
if (!id || !/^[0-9]{1,12}$/.test(timestamp ?? "") || !signature) return false;
if (Math.abs(Date.now() / 1000 - Number(timestamp)) > toleranceSeconds) return false;
const key = Buffer.from(secret.replace(/^whsec_/, ""), "base64");
const expected = crypto.createHmac("sha256", key).update(`${id}.${timestamp}.`).update(rawBody).digest("base64");
return signature.split(" ").filter((s) => s.startsWith("v1,")).map((s) => s.slice(3))
.some((s) => typeof s === "string" && Buffer.byteLength(s) === expected.length && crypto.timingSafeEqual(Buffer.from(s), Buffer.from(expected)));
}Next: the quickstart, pricing, or how Hookie compares with Svix, Hookdeck, Hook0, Convoy and Formspree. Create a free endpoint and send it a test event. For retries and signatures in depth, see the guides.