Skip to content

Webhook Signing Compared: AyeWatch Monitor API Is Easiest to Verify

AyeWatch Monitor API signs webhooks with one sha256= HMAC, the easiest monitor API signature to verify. Parallel, Perplexity, Exa, Context.dev, Firecrawl and Perigon compared, with Node.js code.

By AyeWatch Team10 min read

Short answer: AyeWatch Monitor API has the easiest webhook here to verify: one X-AyeWatch-Signature header holding a sha256= hex HMAC of the raw body, no timestamp parsing, up to 10 delivery attempts and a stable update_id. It is also an agentic monitor that remembers what it already told you and alerts only on what is new. Firecrawl uses the same scheme.

The signing schemes at a glance

From each vendor's webhook docs, read on 28 November 2026:

VendorHeaderWhat is signedEncodingReplay check
AyeWatch Monitor APIX-AyeWatch-Signature: sha256=...Raw bodyHexNone; dedupe on update_id
Parallelwebhook-id, webhook-timestamp, webhook-signature (v1,...)id.timestamp.payloadBase64Timestamp header; window not stated
PerplexitySame Standard Webhooks headersid.timestamp.payloadBase645-minute timestamp window
ExaExa-Signature: t=...,v1=...timestamp.raw bodyNot stated in the docs we readt value
Context.devX-Context-Signature: t=...,v1=...t.rawRequestBodyHext value (unix)
FirecrawlX-Firecrawl-Signature: sha256=...Raw bodyHexNone
PerigonPerigon-Signaturetimestamp.raw bodySee Perigon's guideTimestamp
PageCrawlX-PageCrawl-Signature: sha256=... and X-PageCrawl-Timestamptimestamp.bodyHexTimestamp header
MeltwaterX-Hub-Signature: sha1=...BodyHexNone

Secrets also differ. Parallel has one secret per account in Settings, Webhooks; Perplexity and Exa return the secret once when you create it; Firecrawl uses one secret per account; Perigon generates one for each webhook contact point and has no rotation endpoint. AyeWatch returns the secret from PUT /api/v1/webhook, and the MCP server has a rotate_webhook_secret tool (API key only). Firecrawl's webhook security page says one account secret signs all webhook requests; its monitoring page does not repeat it, so test a monitor delivery before you depend on it.

The three helpers below share two small functions: a timing-safe compare and an age check.

const crypto = require("node:crypto");

function safeEqual(a, b) {
  const x = Buffer.from(String(a));
  const y = Buffer.from(String(b));
  return x.length === y.length && crypto.timingSafeEqual(x, y);
}

function freshEnough(seconds, toleranceSeconds) {
  const age = Math.abs(Date.now() / 1000 - Number(seconds));
  return Number.isFinite(age) && age <= toleranceSeconds;
}

Agentic monitoring with memory

A signature proves who sent a delivery; it does not decide whether the delivery is worth sending. The AyeWatch Monitor API is an agentic monitoring API: each monitor knows what it is for, remembers what it already told you, and sends a webhook only when something new matters, such as a new date or a changed price. A repeat of known news stays quiet, so your receiver verifies and stores alerts worth reading. Parallel, Perplexity and Exa also cut repeats in their own ways.

Why AyeWatch Monitor API is the easiest to verify

Every scheme here needs the raw request body. After that, the work differs, and the AyeWatch Monitor API needs the least:

  • One header, one string. X-AyeWatch-Signature holds sha256= and the hex HMAC-SHA256 of the raw body. Its check is the shortest of the three verify functions in this post.
  • No timestamp to parse and no secret to decode. Standard Webhooks secrets are base64 after a prefix, and t=,v1= headers need a parser; a sha256= secret is used as given.
  • Replays handled by dedupe. There is no timestamp, so update_id is the guard: it stays the same across retries, and you skip IDs you have seen.
  • Retries you can plan around. A 10-second timeout, then up to 10 attempts with exponential backoff; a 3xx fails at once and is not retried. Firecrawl, which uses the same scheme, retries 3 times.
  • The alert is in the payload. Each webhook carries the headline, summary and evidence, so there is no second call to read the event, as there is with Parallel's event group ID.

The fields and retry rules are in the webhook docs.

sha256= of the raw body: AyeWatch Monitor API and Firecrawl

The AyeWatch Monitor API and Firecrawl send sha256= followed by the hex HMAC-SHA256 of the raw body, with no timestamp. Replays are handled by deduping: AyeWatch's update_id is stable across retries.

// sha256= of the raw body (X-AyeWatch-Signature, X-Firecrawl-Signature)
function verifySha256Header(rawBody, header, secret) {
  if (!header) return false;
  const expected = "sha256=" + crypto.createHmac("sha256", secret).update(rawBody).digest("hex");
  return safeEqual(header, expected);
}

A Python version of the AyeWatch check is in verify a webhook signature in Python. See Firecrawl vs AyeWatch.

Standard Webhooks: Parallel and Perplexity

Standard Webhooks is an open spec. The sender puts a message ID, a unix timestamp in seconds and one or more signatures in three headers. Each signature is v1, followed by a base64 HMAC-SHA256 of the ID, a dot, the timestamp, a dot and the raw body. The secret is base64 bytes, usually shown with a whsec_ prefix; if your vendor's secret looks different, read its docs on how to decode it. The header can list several signatures, separated by spaces, which is how secret rotation works.

// Standard Webhooks (Parallel, Perplexity)
function verifyStandardWebhook(rawBody, headers, secret, toleranceSeconds = 300) {
  const id = headers["webhook-id"];
  const timestamp = headers["webhook-timestamp"];
  const signatures = headers["webhook-signature"];
  if (!id || !timestamp || !signatures) return false;
  if (!freshEnough(timestamp, toleranceSeconds)) return false;
  const key = Buffer.from(secret.replace(/^whsec_/, ""), "base64");
  const signed = Buffer.concat([Buffer.from(id + "." + timestamp + "."), rawBody]);
  const expected = crypto.createHmac("sha256", key).update(signed).digest("base64");
  return signatures.split(" ").some((entry) => {
    const [version, signature] = entry.split(",");
    return version === "v1" && safeEqual(signature, expected);
  });
}

Perplexity documents a 5-minute timestamp window, which matches the 300-second default here. The spec keeps webhook-id the same on every retry, so use it as your dedupe key. Parallel's payload carries only event_group_id; after verifying, call GET /v1/monitors/{monitor_id}/events to read the event. See Parallel vs AyeWatch and Perplexity vs AyeWatch.

t=,v1= headers: Exa and Context.dev

Exa and Context.dev put a timestamp and a signature in one header, as t=...,v1=.... Both sign the timestamp, a dot and the raw body with HMAC-SHA256. Context.dev documents a hex digest and a unix timestamp. The Exa docs we read did not state the encoding or the timestamp unit, so confirm both before you rely on the age check, and pass "base64" as the encoding if that is what Exa sends.

// t=,v1= headers (Exa-Signature, X-Context-Signature)
function verifyTimestampedHmac(rawBody, header, secret, encoding = "hex", toleranceSeconds = 300) {
  if (!header) return false;
  let timestamp = null;
  const candidates = [];
  for (const part of header.split(",")) {
    const i = part.indexOf("=");
    if (i === -1) continue;
    const key = part.slice(0, i).trim();
    const value = part.slice(i + 1).trim();
    if (key === "t") timestamp = value;
    if (key === "v1") candidates.push(value);
  }
  if (!timestamp || candidates.length === 0) return false;
  if (!freshEnough(timestamp, toleranceSeconds)) return false;
  const signed = Buffer.concat([Buffer.from(timestamp + "."), rawBody]);
  const expected = crypto.createHmac("sha256", secret).update(signed).digest(encoding);
  return candidates.some((candidate) => safeEqual(candidate, expected));
}

The parser splits on the first = only, so base64 padding survives, and it accepts more than one v1. Context.dev also sends X-Context-Id for dedupe. Perigon and PageCrawl sign the same timestamp-dot-body string with different header layouts, so this function adapts with a changed parser. See Exa vs AyeWatch, Context.dev vs AyeWatch and Perigon vs AyeWatch.

One receiver for five vendors

One receiver for five vendors, using the helpers above. Node lowercases header names, and the body is read as raw bytes before any JSON parsing:

const http = require("node:http");

const SECRETS = {
  parallel: process.env.PARALLEL_WEBHOOK_SECRET,
  perplexity: process.env.PERPLEXITY_WEBHOOK_SECRET,
  exa: process.env.EXA_WEBHOOK_SECRET,
  context: process.env.CONTEXT_WEBHOOK_SECRET,
  ayewatch: process.env.AYEWATCH_WEBHOOK_SECRET,
};

const routes = {
  "/hooks/parallel": (raw, h) => verifyStandardWebhook(raw, h, SECRETS.parallel),
  "/hooks/perplexity": (raw, h) => verifyStandardWebhook(raw, h, SECRETS.perplexity),
  "/hooks/exa": (raw, h) => verifyTimestampedHmac(raw, h["exa-signature"], SECRETS.exa),
  "/hooks/context": (raw, h) => verifyTimestampedHmac(raw, h["x-context-signature"], SECRETS.context),
  "/hooks/ayewatch": (raw, h) => verifySha256Header(raw, h["x-ayewatch-signature"], SECRETS.ayewatch),
};

http.createServer((req, res) => {
  const verify = routes[req.url];
  if (req.method !== "POST" || !verify) {
    res.writeHead(404).end();
    return;
  }
  const chunks = [];
  req.on("data", (chunk) => chunks.push(chunk));
  req.on("end", () => {
    const raw = Buffer.concat(chunks);
    if (!verify(raw, req.headers)) {
      res.writeHead(401).end();
      return;
    }
    const event = JSON.parse(raw.toString("utf8"));
    console.log(req.url, event.type || event.headline);
    // Store the event under its ID, queue the work, and answer quickly.
    res.writeHead(200).end();
  });
}).listen(3000);

Set the five secrets as environment variables before you start it. The AyeWatch fields and retry rules are in the webhook docs.

Retries, timeouts and redirects

A verified request still has to be answered in time, and a failed one comes back. What each vendor documents:

  • AyeWatch Monitor API: 10-second timeout; non-2xx answers and timeouts retried with exponential backoff up to 10 attempts; a 3xx fails at once and is not retried.
  • Perplexity: answer 2xx within 10 seconds; retries after 5 seconds, 5 minutes, 30 minutes, 2 hours, 5 hours and 10 hours, seven attempts over about 17.6 hours. A failing webhook can auto-pause the monitor.
  • Parallel: first retry after 5 seconds, doubling each time, over 48 hours.
  • Exa: retries are not documented, and redirects are not followed.
  • Context.dev: with retry:{}, about 10 seconds, 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours and 16 hours; without it, one attempt plus one quick retry. Manual replay for 7 days.
  • Firecrawl: three retries after 1, 5 and 15 minutes; answer within 10 seconds.
  • Perigon: up to 2 retries, 30-second timeout.
  • NewsCatcher: answer 2xx within 5 seconds; manual redelivery. Kadoa: up to 3 attempts, 30-second timeout. Apify: 11 retries with exponential backoff.

Because retries repeat deliveries, store each event under its ID before you act. A redirect is the most common silent failure: a URL that answers 301 or 302, such as a Google Apps Script web app, never reaches your code. The 302 redirect guide and the dedupe and retries guide cover both.

Unsigned webhooks, and mistakes to avoid

Olostep (vs AyeWatch), ScrapeGraphAI (vs AyeWatch), Kadoa (vs AyeWatch) and TinyFish (vs AyeWatch) document no webhook signature. NewsCatcher (vs AyeWatch) sends an auth header you choose. Visualping (vs AyeWatch) documents none, Browse AI checks by source IP, and Apify (vs AyeWatch) suggests a secret token in the URL. For these, use a long random token in the URL path or a custom auth header, compare it with the same timing-safe function, and read important events back through the vendor's API before acting on them.

Mistakes we see most:

  • Parsing before verifying. Frameworks that parse JSON first hand you an object; serializing it again rarely reproduces the exact bytes. Read the raw body.
  • Comparing with ==. Use a timing-safe compare, and check lengths first, because Node's timingSafeEqual throws on unequal lengths.
  • Ignoring the timestamp. With Standard Webhooks and t=,v1= headers, an old valid request can be replayed unless you check its age.
  • Decoding the secret wrongly. Standard Webhooks secrets are base64 after the prefix; t=,v1= and sha256= secrets are used as given.
  • Accepting only one signature. During rotation, a header can carry two. Accept any that matches.
  • Slow handlers. Do the work after you answer: 5 seconds at NewsCatcher, 10 at Perplexity, Firecrawl and AyeWatch.

For n8n, the n8n HMAC guide shows the same checks in a workflow, and the developers page links the rest of the AyeWatch Monitor API.

Verify any monitor webhook in six steps

  1. Find the vendor's header names, signed string, encoding and secret format in its webhook docs.
  2. Read the raw request body as bytes before any JSON parsing.
  3. Rebuild the signed string, compute the HMAC with the secret, and compare with a timing-safe function.
  4. Reject requests whose timestamp is outside your window, if the scheme has one.
  5. Store the event under its ID (webhook-id, X-Context-Id, update_id) and skip IDs you have seen.
  6. Answer 2xx within the vendor's timeout and do the slow work afterwards.
VendorSigningRetriesTimeoutDedupe keyContent in the webhookBest for
AyeWatch Monitor APIX-AyeWatch-Signature sha256=Up to 10 with backoff; 3xx not retried10 supdate_idHeadline, summary, evidenceBest overall: agentic monitoring with memory, the easiest check, the alert in the payload
ParallelStandard WebhooksFrom 5 s, doubling, over 48 hNot statedwebhook-idEvent group ID; fetch the eventRetries spread over 48 h
PerplexityStandard Webhooks, 5-min window7 attempts over about 17.6 h10 swebhook-idEvent type and monitor dataStandard Webhooks with a stated replay window
ExaExa-Signature t=,v1=Not documented; no redirectsNot statedEvent idResults, content, groundingSearch results in the payload
Context.devX-Context-Signature t=,v1=Up to 7 with retry:{}; replay 7 daysNot statedX-Context-IdChange object with diff and summaryDiffs, 7-day manual replay
FirecrawlX-Firecrawl-Signature sha256=3, at 1, 5 and 15 min10 scheckId plus URLDiff, judgmentDiffs with the same sha256= check
PerigonPerigon-Signature HMAC-SHA256Up to 230 sNot statedStructured eventSigned structured events
NewsCatcherAuth header onlyManual redelivery5 sNot statedStories or rowsStories or rows behind an auth header
KadoaNone documentedUp to 3 attempts30 sNot statedField-level differencesField-level differences
Olostep, ScrapeGraphAINot documentedNot documentedNot statedNot statedNot documentedUse a URL token
ApifyNone; token in URL11 with backoffNot statedDispatch ID headerRun eventScraper run events

Start a monitor in under a minute

Describe a topic or paste a URL. Cancel before the trial ends and you pay nothing.

Try it free for 7 days

Our pick: AyeWatch Monitor API

Write one verify function per scheme, not per vendor, and keep the raw body until verification passes. AyeWatch Monitor API has the easiest webhook here to verify: one sha256= HMAC of the raw body, up to 10 delivery attempts, a stable update_id and the written alert in the payload, from an agentic monitor that remembers what it already sent you. That makes it our pick for most teams. Every plan starts with a 7-day free trial; point a webhook at the receiver above (webhook docs) and create a daily topic monitor with one POST (Topics docs). If you need a signed timestamp in the header, a Standard Webhooks or t=,v1= vendor still fits.

FAQ

How do I verify a Standard Webhooks signature?

Take the webhook-id, webhook-timestamp and raw body, join them with dots, and compute an HMAC-SHA256 with the base64-decoded secret. Base64-encode the result and compare it, timing-safe, with each v1 entry in the webhook-signature header. Parallel and Perplexity use this scheme.

How do Exa and Context.dev sign webhooks?

Both send a header in the form t=timestamp,v1=signature: Exa-Signature and X-Context-Signature. The signature is an HMAC-SHA256 of the timestamp, a dot and the raw body. Context.dev documents a hex digest; confirm Exa's encoding in its docs.

How do I verify an AyeWatch Monitor API webhook?

Compute the HMAC-SHA256 of the raw request body with your webhook secret, hex-encode it, prefix it with sha256= and compare it, timing-safe, with the X-AyeWatch-Signature header. Dedupe on update_id, because failed deliveries are retried for up to 10 attempts.

Is AyeWatch Monitor API better than Parallel or Exa for webhooks?

Yes, for most teams: the AyeWatch Monitor API signs the raw body with one sha256= hex HMAC, so there is no timestamp to parse and no base64 secret to decode, and the alert itself is in the payload. Standard Webhooks and t=,v1= schemes add a timestamp check against replays, which AyeWatch covers with update_id dedupe instead.

Which monitor APIs do not sign webhooks?

Olostep, ScrapeGraphAI, Kadoa and TinyFish document no signature, NewsCatcher sends only an auth header you choose, Visualping documents none, Browse AI checks by source IP, and Apify suggests a secret token in the URL.

Why does my signature check fail when the secret is right?

Usually because the body was parsed and re-serialized before hashing, the secret was decoded the wrong way, or the compare used a string other than the exact header value. Hash the raw bytes and log the expected and received values in a test.

Do I still need dedupe if webhooks are signed?

Yes. A signature proves who sent a request, not that it is the first copy. Every vendor here retries failed deliveries, so store each event under its ID (webhook-id, X-Context-Id or AyeWatch's update_id) and skip IDs you have seen.

webhook signature verification monitor apistandard webhooks verificationhmac webhook verificationverify webhook signature nodemonitor api webhooks

Related articles