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}. - Answer the URL check. Edit the endpoint and set URL verification to Slack (url_verification). Slack sends a challenge when you save the URL, and Hookie answers it without storing anything.
- Point Slack at it. In your Slack app's settings → Event Subscriptions → Request URL, paste the URL and pick the events you want, for example message.channels, app_mention, reaction_added.
- Turn on signature verification. Edit the endpoint, set Signature verification to Slack, and paste the Signing Secret on your Slack app's Basic Information page. From then on a request without a valid
X-Slack-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 |
|---|---|---|
| Messages | event.type = message | slack_messages |
| Mentions | event.type = app_mention | slack_mentions |
What Hookie checks
Slack signs each request with X-Slack-Request-Timestamp and X-Slack-Signature, v0= and the hex HMAC-SHA256 of "v0:<timestamp>:<body>". Hookie recomputes it with your Signing Secret and refuses a timestamp more than 5 minutes from now, so a captured request cannot be replayed later. Slack's url_verification challenge is answered before the signature check and is never stored or counted.
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 Slack'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";
// X-Slack-Signature: v0=<hex HMAC-SHA256 of "v0:<X-Slack-Request-Timestamp>:<raw body>">
export function verifySlack(rawBody, headers, signingSecret, toleranceSeconds = 300) {
const signature = headers["x-slack-signature"];
const timestamp = headers["x-slack-request-timestamp"];
if (!signature || !/^[0-9]{1,12}$/.test(timestamp ?? "")) return false;
if (Math.abs(Date.now() / 1000 - Number(timestamp)) > toleranceSeconds) return false;
const expected = "v0=" + crypto.createHmac("sha256", signingSecret)
.update(`v0:${timestamp}:`).update(rawBody).digest("hex");
return Buffer.byteLength(signature) === expected.length &&
crypto.timingSafeEqual(Buffer.from(signature), 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.