Set it up
- In Zapier, create a Zap. For the trigger, choose Webhooks by Zapier and the event Catch Hook, then Continue.
- Leave Pick off a child key empty and continue. On the Test tab, copy the webhook URL.
- In Hyperodds, open Alerts and sign in. Paste the URL on the Webhook card and choose Add webhook. Hyperodds sends a test message.
- Back in Zapier, choose Test trigger. The test message appears with every field, such as title, market url and data edge pts.
- Add a Filter step that continues only when test is false, so the test message never runs your actions. Add a condition for what matters to you, for example data edge pts greater than 5, then the actions you want, such as a Slack message or a Google Sheets row.
- Publish the Zap. In Hyperodds, choose Webhook on any alert.
Check the signature
Catch Hook passes on the body without the request headers, so keep the URL private: anyone who has it can send your Zap data.
To check signatures, choose the event Catch Raw Hook instead and add a Code by Zapier step in JavaScript. Give it three inputs: raw, the raw body; signature, the Hyperodds-Signature header; secret, your signing secret. Then filter on valid.
const crypto = require("crypto");
const [t, ...sigs] = inputData.signature.split(",").map((p) => p.slice(p.indexOf("=") + 1));
const expected = Buffer.from(
crypto.createHmac("sha256", inputData.secret).update(`${t}.${inputData.raw}`).digest("hex"),
);
const fresh = Math.abs(Date.now() / 1000 - Number(t)) < 300;
const same = sigs.some((v1) => v1.length === expected.length && crypto.timingSafeEqual(Buffer.from(v1), expected));
output = { valid: fresh && same };Good to know
Webhooks by Zapier is part of Zapier's paid plans.
Zapier answers as soon as a request arrives, so Hyperodds counts an alert as delivered even if a later step of the Zap fails. Zapier's Zap history shows those runs.