Verify an HMAC Webhook Signature in Make (sha256 With a Key)
Check AyeWatch's X-AyeWatch-Signature header in Make: turn on JSON pass-through and request headers, compute sha256() with your secret as the key and stop anything that doesn't match.
By AyeWatch Team6 min read
Short answer: To verify an HMAC webhook signature in Make, set the Custom webhook's Get request headers and JSON pass-through options to Yes. Then add a filter that compares sha256= plus sha256(value; hex; your secret; text) with the X-AyeWatch-Signature header. Make's sha256 function returns an HMAC when you give it a key.
An HMAC webhook signature is a hash of the request body computed with a secret that only the sender and receiver know. The sender puts it in a header. The receiver computes the same hash over the exact bytes it received and accepts the request only if the two match. AyeWatch sends it as X-AyeWatch-Signature: sha256= followed by the hex digest.
Why the standard Make setup can't check it
AyeWatch signs the exact bytes of each request body with your webhook secret. In a standard Make scenario the Custom webhook parses the JSON into fields and doesn't expose the headers, which is why the Make setup guide treats the webhook address as the secret instead. Rebuilding the JSON from parsed fields doesn't work either: spacing, key order and the escaping of non-English text can differ from what AyeWatch sent, and one changed byte changes the hash.
Two advanced settings on the Custom webhook fix this. JSON pass-through hands the body to the next module as one text string instead of separate fields. Get request headers makes the headers available for mapping. With both on, Make has everything the check needs.
The settings, the function and the filter
Module 1 Webhooks: Custom webhook
Advanced settings
Get request headers: Yes
JSON pass-through: Yes
Filter between module 1 and module 2 (label: Signed by AyeWatch)
Condition: sha256=sha256(value; hex; YOUR_AYEWATCH_SECRET; text)
Operator: Text operators: Equal to
Value: first(map(Headers[]; value; name; x-ayewatch-signature))
Module 2 JSON: Parse JSON
JSON string: value
In the filter's Condition field, type sha256=, then insert the sha256 function from Make's functions panel and fill in its arguments. Make documents it as sha256(text; [encoding]; [key]; [key encoding]). When you give it a key, it returns an HMAC instead of a plain hash.
- text: the raw body. With pass-through on, Make puts it in one item, shown as
valuein the module's output. - encoding:
hex, which is also the default. AyeWatch sends a hex digest. - key: your secret, copied from the Signing Secret box on the AyeWatch webhook screen with Reveal and Copy.
- key encoding:
text, also the default. The secret looks like hex, but AyeWatch signs with it as a plain string, so choosinghexhere gives a different hash.
Headers arrive as a list of name and value items. map() keeps the values whose name matches, and first() takes the first one. Copy the header name exactly as it appears in the Headers list of a captured request, because the match is exact.
Parse the body after the check
With pass-through on, nothing has been parsed yet, so add JSON, Parse JSON after the filter with value as its JSON string. Give it a data structure, which Make can generate from a sample alert. A made-up one in the shape the webhook docs describe:
{"topic_id":6013,"topic_name":"https://cobaltfreight.example/service-notices","update_id":102877,"headline":"Cobalt Freight suspends the Rotterdam to Leeds service","content":"A new notice says the weekly service is suspended from 4 December.","created_at":"2026-12-02T10:05:00Z","evidence":[{"quote":"Rotterdam to Leeds suspended from 4 December","source_url":"https://cobaltfreight.example/service-notices"}]}
Every later module maps from Parse JSON's output, not from module 1. The Routers, Iterators and Sheets steps in the other Make recipes, such as the lead generation scenario, work unchanged after it.
Test the check before a real alert arrives
AyeWatch has no test button, but you can sign a sample body yourself and post it to the Make address. Select Run once in Make, then run this in a terminal that has OpenSSL and curl:
SECRET='YOUR_AYEWATCH_SECRET'
URL='YOUR_MAKE_WEBHOOK_ADDRESS'
BODY='{"topic_id":1,"topic_name":"signature test","update_id":1,"headline":"Signature test","content":"Test","created_at":"2026-12-02T10:00:00Z"}'
SIG=$(printf '%s' "$BODY" | openssl dgst -sha256 -hmac "$SECRET" | sed 's/^.* //')
curl -X POST "$URL" -H "Content-Type: application/json" \
-H "X-AyeWatch-Signature: sha256=$SIG" --data-binary "$BODY"
The run should pass the filter and reach Parse JSON. Select Run once again, change one character of the signature and send it: History should show the bundle stopping at the filter. If the test passes and a real alert later fails, the usual causes are a pasted secret with a trailing space, a key encoding set to hex, or a secret that was rotated.
Limits of a filter-based check
- Not constant-time. A Make filter compares text the ordinary way. AyeWatch's docs recommend a constant-time compare, which you can write in a code step, such as Zapier's Code step, or in your own relay. The filter still stops forged requests from anyone who doesn't have your secret.
- Make has already answered. Make replies 200 Accepted when it queues the request, before the filter runs. A request that fails the check counts as delivered for AyeWatch, so a wrong secret silently drops every alert. A safer layout is a Router after module 1: a Signed route with the condition above, and a fallback route that logs failures to a sheet, so a broken check shows up.
- No replay window. The signature covers the body only, with no timestamp, so a captured request could be sent again. Dedupe on
update_id, which you need anyway because AyeWatch's retries reuse it. - The secret lives in the scenario. Anyone who can edit the scenario can read it. If you rotate it, for example with the MCP server's
rotate_webhook_secrettool, update the formula at once; until you do, every alert fails the check.
Cost
AyeWatch Pro is $9/mo with 50 topics and hourly checks; Pro+ is $19/mo with 200 topics and ASAP mode. Every plan starts with a 7-day free trial. Webhooks need a paid AyeWatch plan, trial included. On the Make side, the check adds one Parse JSON run to every alert. Make meters module runs in its own credits, so check its pricing page.
Add the check in six steps
- Open the Custom webhook, show its advanced settings, set Get request headers and JSON pass-through to Yes and save.
- Copy the secret from the Signing Secret box in Notification settings, Webhook in AyeWatch, using Reveal and Copy.
- Add JSON, Parse JSON after the webhook with value as its JSON string, and give it a data structure from a sample alert.
- Click the line between the two modules, add the filter shown above and save it.
- Select Run once and send the signed test request with curl, then a second one with a wrong signature.
- Remap every later module to Parse JSON's output and switch the scenario on.
| Setting or argument | Value | Why |
|---|---|---|
| Get request headers | Yes | Makes X-AyeWatch-Signature available for mapping |
| JSON pass-through | Yes | Keeps the body as the exact text AyeWatch signed |
| sha256: text | value | The raw body item from the Custom webhook |
| sha256: encoding | hex | AyeWatch sends a hex digest |
| sha256: key | Your signing secret | From the AyeWatch webhook screen |
| sha256: key encoding | text | AyeWatch uses the secret as a plain string |
| Filter operator | Text operators: Equal to | The header must match exactly, sha256= included |
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 daysThe bottom line
Turn on the two advanced settings, add Parse JSON and the filter, and prove the check with one signed curl request and one forged one. Then move the filter onto a Router with a fallback route that logs failures, so a rotated secret can't drop alerts quietly.
FAQ
Can Make compute an HMAC-SHA256?
Yes. Make's sha256(text; [encoding]; [key]; [key encoding]) function returns an HMAC when you give it a key. sha512 works the same way.
Why does my signature never match in Make?
Check that JSON pass-through is on, that the key encoding is text rather than hex, that the pasted secret has no extra space, and that the header name in map() matches the Headers list exactly.
Is the comparison in a Make filter constant-time?
No. A filter compares text the ordinary way. If you need a constant-time compare, check the signature in a code step or a small relay in front of Make.
Do I still need Parse JSON?
Yes. With JSON pass-through on, the body arrives as one text item, and Parse JSON turns it back into fields for the modules after the check.
Can I use the Make webhook's API key authentication instead?
No. Make expects its key in an x-make-apikey header, and AyeWatch sends only the content type and its own signature header.
What happens to a request that fails the check?
The filter stops it, but Make has already answered 200 Accepted, so AyeWatch counts it as delivered. Log failures on a fallback route so a wrong secret doesn't go unnoticed.