Verify signatures
The delivery ID, timestamp, and signature follow the Standard Webhooks 1.0 specification. Make defines the event envelope and schemas separately in Event types and adds Webhook-Topic as routing metadata.
Each subscription has a signing secret beginning with whsec_. You can obtain the current secret from the subscription details in Make. Store it in a secret manager and expose it only to the receiver that performs verification.
Verify a request
Verification uses the exact raw request body, Webhook-Id, Webhook-Timestamp, Webhook-Signature, and the subscription's signing secret. Verify the raw body before JSON parsing or any transformation; parsing and serializing it again can change the signed bytes.
You can implement the following steps directly or use a compatible Standard Webhooks reference library for your language.
The signed content has this format:
<Webhook-Id>.<Webhook-Timestamp>.<raw request body>Require all three signature headers and retain their values as received.
Interpret
Webhook-Timestampas Unix time in seconds. As a replay-protection recommendation, reject the request if it differs from the current time by more than 5 minutes in either direction.Remove the
whsec_prefix from the signing secret and Base64-decode the remainder to obtain the HMAC key.Construct the signed content shown above using the header values and exact raw body.
Compute HMAC-SHA256 over the signed content and Base64-encode the binary digest using standard Base64.
Split
Webhook-Signatureon spaces. For each entry beginning withv1,, compare the supplied digest with the computed digest using a constant-time comparison.Accept the signature if any supported
v1entry matches. Otherwise, reject the request without processing it.
Do not compare signatures with a normal string equality operation. Keep the receiver's clock synchronized and verify immediately on receipt.
Timestamp freshness limits replay of a captured signed request. It does not replace Webhook-Id deduplication, which prevents a legitimate retry or manual resend from triggering the same action or update more than once.
A valid signature confirms authenticity and integrity; it does not validate the JSON or event schema. After verification, parse and validate the event. For a valid but unknown {type, version}, see Handle unknown events.
Last updated

