ToolGrid — Product & Engineering
Leads product strategy, technical architecture, and implementation of the core platform that powers ToolGrid calculators.
Loading...
Preparing your workspace
Loading tool...
Please wait.
Bulk Signature Verification Pack unlocks 1–5 case files (1 MB each, 4 MB combined) as a ZIP of signature reports. Free plan stays single paste-and-verify (no file batch).
Free file batch limit: 0 files (paste-only verification stays free).
Each file must be JSON with verifier fields (rawBody, signatureHeader, secretOrPublicKey, optional scheme headers) or an inputs object wrapping those fields.
Paste your raw request body, signature header, and signing secret on the left to inspect the exact signed string, compare digests, and pinpoint why a signature failed.
Paste a raw mail webhook body, signature header, and signing secret to check Resend/Svix, Mailgun, SendGrid, timestamped, or generic signed payloads and see why a mismatch happened. Review digests, signed-string bytes, and clear fix hints in your browser. Paid users can run a Bulk Signature Verification Pack on multiple JSON cases and download a ZIP of reports; AI Assistant can help diagnose failed cases when you explicitly enable it.
White-Label Platform
Paste a small snippet on your domain, use your branding, and sell to your clients with one subscription and no revenue share.
Learn moreTOOLGRID API GATEWAY
7-day free trial · $0
Start with a 7-day free trial at $0 — try 400,000 API credits (AI paths locked until paid). Then $19.99/mo.
Try 400,000 API credits for 7 days · $0
Start free trialToolGrid MCP
Connect ChatGPT, Claude, Cursor, and other MCP clients to this catalog — one connection, same Developer API credits as the gateway. Try 400,000 API credits for 7 days · $0 on the Gateway plan.
Connect MCPCommon questions about this tool
You can auto-detect or choose Resend/Svix, Mailgun, SendGrid, timestamped t=/v1= headers, or a generic raw-body signature with flexible hash and encoding options.
No. Single-case checks run in your browser. If you enable AI Assistant, only non-secret metadata such as header context, a short body snippet, and the local result summary are used.
Paid users can upload one or more JSON case files in one run and download a ZIP of per-file verification reports plus a summary spreadsheet. Free use stays on single paste-and-verify.
Choose a scheme tab (or leave Auto-Detect), paste the signature header, signing secret or public key, and the exact raw request body. Optionally paste a raw HTTP headers block or load Sample Input, then click Verify Signature. Review digests, the signed string, checks, and any recommended fix in the result panel.
Yes. Single paste-and-verify, Sample Input, scheme tabs, advanced encoding options, and optional AI Assistant on failed or stale results are available without a paid plan. The paid Bulk Signature Verification Pack unlocks 1–5 JSON or text case files and a ZIP of reports.
Free use is paste-based: raw body text, signature headers, and secrets or keys. Paid Bulk Signature Verification Pack accepts .json and .txt case files (up to 1 MB each and 4 MB combined on web), then returns a ZIP of per-file verification JSON plus a summary CSV.
Yes. It runs in the browser on ToolGrid. You paste webhook inputs or upload paid bulk case files and get verification output without installing a desktop client.
You can auto-detect or choose Resend/Svix, Mailgun, SendGrid ECDSA, timestamped t=/v1= headers, or generic raw-body HMAC. Advanced options cover hash algorithm, secret encoding, digest format, and timestamp tolerance.
No for single-case verification: cryptographic checks run in your browser. Optional AI Assistant uses non-secret metadata such as header context, a short body snippet, secret length or format hints, and the local result—not the raw secret. Paid bulk verification uploads case files you choose to process.
It is the paid multi-file path. Upload 1–5 JSON or text case files within size limits, optionally enable AI Assistant for failed or stale cases, then download a ZIP with per-file verification reports and a summary CSV. Free plans stay on single paste-and-verify with no file batch.
No. Digest comparison and root-cause checks always run without AI. AI Assistant appears only after an invalid or stale-timestamp result and only when you explicitly click Run AI Assistant.
Yes. Open Paste HTTP headers block and paste a multi-line header dump. The tool can extract common Svix, SendGrid, and other signature-related headers into the form fields.
The digest matched, but the webhook timestamp fell outside your configured tolerance (default 300 seconds). Tighten clock sync or adjust Timestamp Tolerance in Advanced Options before widening acceptance in production.
It resolves the provider scheme, rebuilds the exact signed string, computes or checks the digest with your secret or public key, then compares encodings and runs mismatch probes such as JSON re-serialization, line endings, and prefix issues. Results show expected versus received digests, checks, and a recommended fix.
Use it only on payloads, headers, and secrets you own or are authorized to debug. Prefer the free local paste path so secrets stay in the browser, avoid production secrets in shared sessions, and do not use the tool to forge signatures or probe systems without permission.
A mail webhook signature is a cryptographic value a provider attaches to an HTTP webhook so your server can prove the request came from that provider and that the body was not altered in transit. It is usually carried in one or more HTTP headers next to the raw request body.
Email platforms emit events such as delivered, bounced, opened, or complained. Anyone who discovers your webhook URL could otherwise POST fake events. A signature binds a secret or public key to specific bytes, so forged or truncated bodies fail verification.
Different providers use different recipes. Some sign a concatenation of message id, timestamp, and body. Others sign a timestamp and token pair. Some use ECDSA with a public verification key instead of a shared HMAC secret. The idea is the same: recompute or validate the signature with the exact bytes the provider signed.
Treat the signature as part of your security boundary. Reject unsigned or invalid requests before you create tickets, update orders, or trigger side effects. Log failures with enough detail to debug without storing secrets in clear text.
Webhook signature verification rebuilds the same signed input the provider used, applies the shared secret or public key, and compares the result to the signature header using a constant-time compare when lengths match. If the values differ, the request should be rejected.
Typical steps are: read the raw body bytes before any JSON rewrite, collect required headers such as timestamps or message ids, decode the secret correctly, compute the digest or verify the digital signature, then check that any timestamp falls inside an allowed skew window.
Failures usually mean the bytes changed, the secret encoding is wrong, the wrong algorithm was used, or the timestamp is outside tolerance. Pretty-printed JSON, converted line endings, and middleware that re-serializes the body are frequent causes even when the logical JSON looks identical.
Production handlers should verify first, acknowledge quickly, and process work asynchronously. Keep fixtures of known-good and known-bad requests so regressions are caught before release.
It can be safe when you only paste authorized staging samples, keep production secrets out of shared browsers, and understand what leaves your device. Browser-based verifiers that compute digests locally are generally safer for secrets than tools that upload the raw key for every check.
Risks include pasting live customer payloads into a shared machine, screenshots that capture secrets, and browser extensions that read form fields. Treat signing secrets like passwords: rotate them if exposure is possible, and prefer short-lived staging secrets for demos.
Online verification is a debugging aid, not a replacement for server-side checks. Your production listener must still verify every request independently with secrets stored in a vault or environment configuration, not copied from a chat log.
If an optional assistant analyzes a failure, confirm it receives metadata and snippets rather than the raw secret. Never paste secrets into public tickets or AI chats that retain training data.
Always verify against the exact raw body bytes your HTTP stack received. Disable or bypass body parsers that re-stringify JSON before verification. Capture the content-length and a hash of the raw buffer in logs when debugging mismatches so you can prove what arrived on the wire.
Pin algorithm and encoding expectations per provider. Document whether digests are hex, Base64, or Base64URL, and whether secrets are UTF-8, hex, or Base64 after stripping prefixes such as whsec_. Guessing encodings under pressure creates false “secret is wrong” incidents that waste hours and can trigger unnecessary rotations.
Enforce a timestamp window to limit replay, but keep clocks synchronized with NTP across app hosts and containers. A matching digest with an old timestamp should not be treated the same as a fully valid fresh request; alert on stale-valid spikes separately from hard mismatches.
Keep a regression pack of fixtures per provider and run them in continuous integration and again after framework upgrades. Separate staging and production secrets, restrict who can read them, and rotate when people leave the team or a secret may have leaked. Review failure metrics weekly so silent middleware changes do not become customer-facing outages.
HMAC is a keyed hash that combines a secret key with a message to produce a fixed-length digest. Anyone with the secret can recreate the digest for a given message; anyone without it cannot forge a convincing signature for arbitrary bodies, which is why it fits outbound event callbacks.
Email providers use HMAC on webhooks because it is fast, widely supported in server languages, and does not require distributing public certificates for every customer. Your app stores the shared secret from the provider dashboard; the provider signs each event; you recompute and compare using a constant-time equality check when lengths match.
HMAC does not encrypt the body. It only authenticates integrity and origin under the assumption that the secret stays confidential. If the secret leaks, attackers can forge events until you rotate, so treat the value like a password and keep it out of git, screenshots, and client-side code.
Prefer modern constructions such as HMAC-SHA256 unless a provider still documents SHA-1 for compatibility. Store secrets in a secrets manager, restrict who can read them, monitor verification failures after deploys, and never embed signing keys in mobile apps or public repositories.
Most “correct secret” failures are actually byte mismatches. The provider signed one sequence of bytes; your verifier hashed another. Extra spaces, pretty-printed JSON, UTF-8 BOM markers, or CRLF versus LF changes produce different digests without changing how JSON.parse reads the object, which makes the bug feel mysterious.
Encoding mistakes are next. A secret stored as hex might need to be decoded to raw bytes, while a whsec_ value often needs the prefix stripped and the remainder Base64-decoded. Comparing hex output to a Base64 header also fails even when the underlying HMAC bytes match, so label encodings clearly in logs.
Timestamp and scheme confusion also show up. Signing only the body when the provider signed id-plus-timestamp-plus-body, or using SHA-1 when the provider uses SHA-256, yields a clean mismatch that looks identical to a wrong secret in a simple pass/fail metric.
Debug by printing the exact signed string length, comparing encodings side by side, and testing a known fixture from the provider docs before you rotate anything. Fix the byte path and middleware order first; rotate secrets only when exposure is plausible.
Timestamp tolerance is the maximum allowed difference between the webhook’s signed timestamp and your server’s clock. Requests older or newer than that window are rejected even if the digest matches, which reduces replay of captured traffic that an attacker might resend later.
Common defaults are a few minutes, such as five minutes (300 seconds). Wider windows help environments with clock skew across containers or serverless regions; narrower windows reduce the replay interval. There is no single perfect number for every system, so pick a value that matches provider guidance and your operational reality.
If digests match but timestamps fail, check NTP on your hosts, container time zones, and whether you are comparing seconds versus milliseconds. Logging the delta in seconds makes this diagnosis fast and prevents unnecessary secret rotations during clock incidents.
Do not disable timestamp checks permanently to silence errors. Prefer fixing clocks or slightly widening tolerance in staging while you investigate. Keep replay protection in place for production listeners and alert when stale-valid rates rise after a deploy or infrastructure change.
Yes. Signature verification should be mandatory for production mail webhooks that trigger business actions. Without it, anyone who learns your URL can inject fake delivery, bounce, complaint, or engagement events and drive wrong automation.
Verification belongs at the edge of the handler: read raw bytes, verify, then parse and enqueue work. Skipping verification in “temporary” code often becomes permanent and is a common incident pattern after a rushed integration.
Defense in depth still matters. Combine signatures with TLS, IP allowlists when the provider publishes them, idempotency keys, and schema validation. Signatures prove origin and integrity for a payload; they do not prove your business logic or downstream systems are correct.
Monitor verification failure rates continuously. Spikes can mean a secret rotation, a middleware change, proxy header stripping, or an attack. Alert on sudden increases, keep a rollback path for secret updates, and practice the failure mode in staging before it hits customers.
API key authentication proves a caller knows a token, usually sent as a header on requests your systems initiate or on inbound routes you protect. Webhook signature verification proves a specific body was signed by a holder of a provider secret or key at a point in time.
They solve different threats. An API key on a public webhook URL can be replayed with any body if stolen. A signature binds the key material to the payload and often to a timestamp, so stolen traffic is harder to reuse unchanged outside the time window.
Some systems use both: a shared endpoint secret plus per-request signatures. Others rely on signatures alone because providers already document that pattern.
Choose signatures for provider-to-you event callbacks. Use API keys or OAuth for your outbound API calls. Do not assume an API key on a webhook is enough if the provider offers a proper signing scheme.
Webhook signatures hash exact bytes, not the abstract JSON value. Pretty-printing inserts spaces and newlines, which changes the byte sequence even when JSON.parse yields the same object. The digest then no longer matches the provider header, which is why “identical JSON” still fails verification.
The same issue appears when frameworks parse JSON and later JSON.stringify the object before verification. Key order, spacing, and Unicode escaping can all differ from the original wire bytes. Those differences are invisible in most debuggers that show parsed objects.
Providers sign the raw HTTP body. Your verifier must use that same buffer. Capture rawBody in middleware, verify first, then parse a copy for application logic so security and business parsing do not fight each other.
If you only have a pretty-printed sample, you cannot recreate the original signature unless you also have the exact original bytes. Always archive raw captures when filing signature bugs, and disable editor format-on-save for webhook fixtures.
CRLF means carriage return plus line feed (\r\n). LF means a single newline (\n). They look similar in many editors but are different bytes, so HMAC digests diverge when line endings change even if the visible text seems unchanged.
Bodies can pick up CRLF when copied through Windows tools, email gateways, or HTTP client libraries that normalize text. Unix services often emit LF only. Mixing them during “cleanup” of a captured payload breaks verification and leads teams to suspect the wrong secret.
When debugging, inspect byte length and whether \r appears before \n. Visual markers for carriage returns help humans see invisible differences. Do not run automatic line-ending conversion on webhook fixtures or in git attributes without understanding the impact on digests.
Store fixtures as binary-accurate files and disable editor settings that convert endings on save. Treat webhook bodies like opaque blobs until after verification succeeds, then parse JSON only from a verified copy of the data.
A whsec_ prefix usually marks a webhook signing secret in Svix-style systems, including some email products that build on that pattern. The characters after the prefix are typically Base64-encoded key material, not the literal UTF-8 password you might expect from older shared-secret designs.
If you HMAC with the full string including whsec_, digests will not match. Correct handling strips the prefix, Base64-decodes the remainder, then uses those raw bytes as the HMAC key. Missing either step is one of the most common integration mistakes.
Docs and dashboards often show the secret with the prefix included for copy-paste convenience. Your production code and any offline verifier must apply the same decoding rules the provider documents, and tests should cover a sample that only passes when decoding is correct.
Store the secret exactly as issued, document the strip-and-decode step in your runbooks, and re-test with a provider sample payload after every secret rotation. Never commit the value to source control or paste it into public channels.
Public-key webhook verification uses asymmetric cryptography: the provider signs with a private key, and you verify with a published public key. SendGrid-style event webhooks are a common email example that uses ECDSA over a combination of timestamp and body bytes.
First obtain the current verification key from the provider’s console or docs in the expected format, often Base64 or PEM. Then rebuild the exact signed message string the provider documents, decode the signature header, and run an ECDSA verify operation against those inputs.
Unlike HMAC, you do not store a shared symmetric secret for verification. You must still protect against downgrade and key confusion by pinning the expected algorithm, rejecting unexpected key types, and keeping key material out of untrusted clients.
Rotate handling when providers publish new keys. Keep old keys only for the overlap window they document. Test with a captured valid event before enabling production traffic on a new key, and monitor verify failures during the cutover.
Mailgun-style schemes often sign a concatenation of timestamp and token, not the entire JSON body. Hashing the whole body with the signing key is a frequent mistake that always fails against the real signature field even when the secret is correct.
Another mistake is reading timestamp or token from the wrong place—header versus body fields—or using stale values after rewriting the payload. Some integrations also compare encodings incorrectly or mix hash algorithms that the provider does not use for that endpoint.
Clock skew can reject otherwise valid requests if you enforce a tight timestamp window without checking server time. Log the timestamp, token length, and computed digest encoding when failures spike so you can separate crypto mistakes from time sync issues.
Follow the provider’s documented signed string exactly, verify with known samples, and only then wire production routes. Keep unit tests that fail if someone “simplifies” verification to body-only HMAC during a refactor.
Svix-style signatures typically include a message id, a timestamp, and the raw body in a structured signed string, with signatures presented as versioned values such as v1 with Base64 digests. Raw-body HMAC signs only the body bytes and often appears as hex or sha256= prefixed headers.
Svix-style verification therefore needs extra headers for id and timestamp and usually a specially encoded secret. Raw-body HMAC needs correct body bytes plus matching hash and digest encoding settings. Mixing the two recipes is a common source of persistent mismatches.
Choose the mode that matches the provider, not the mode that is easiest to implement in your framework. Auto-detection can help during debugging, but production code should pin the documented scheme and reject unexpected formats loudly.
When migrating providers, rewrite verification and fixtures together. Keeping a raw-body verifier against Svix-style traffic will fail even with the correct secret, and the metrics will look identical to a key rotation problem.
A replay attack resends a previously valid webhook request so your system performs the same action again. Signatures alone do not stop replays if you accept an old but correctly signed payload forever without time or deduplication checks.
Timestamp windows shrink the useful lifetime of a captured request. Idempotency keys, unique event ids, and deduplication stores stop legitimate provider retries from creating duplicate side effects such as double tickets or double writes.
Attackers who obtain a signed payload still need it to fall inside your time window and bypass idempotency controls. Combined defenses are stronger than any single check, and they also harden you against honest provider retries after timeouts.
Design handlers to acknowledge quickly, record event ids, and make processing idempotent. Review logs for duplicate ids when customers report repeated actions, and alert when the same event id is seen many times in a short period. Train the team to treat duplicate deliveries as normal provider behavior, not as proof that signatures failed.
In 2026, HMAC-SHA256 remains the preferred default for new webhook signing designs. It is widely supported across languages, fast enough for typical event sizes, and aligned with modern guidance that moves away from SHA-1 for new integrity uses whenever you control the design.
HMAC-SHA1 may still appear where older provider APIs require it for compatibility. If a provider documents SHA-1, implement what they ship and track their migration notes rather than inventing a SHA-256 header they will not send or validate.
Do not mix algorithms during verification. Computing SHA-256 while the header carries a SHA-1 digest produces mismatches that look like secret errors and can trigger unnecessary rotations during incidents.
When you control both ends, standardize on HMAC-SHA256, document digest encoding, and add automated tests. When you only consume a provider, follow their current documentation and security bulletins and schedule work when they announce deprecations. Record the algorithm next to each environment secret so operators do not guess under pressure during an outage.
First confirm you are hashing the raw body buffer, not a re-serialized object. Compare byte length and a short hex prefix of the body against a capture from the provider or your reverse proxy so you know both sides saw the same bytes.
Next verify secret decoding and algorithm settings. Check prefixes, Base64 versus UTF-8, and whether the header digest is hex or Base64. Compute both encodings temporarily in a secure debug path to see which representation matches.
Then rebuild the signed string exactly as documented, including ids and timestamps where required. Print the signed string length and a safe preview without logging full secrets. Finally check timestamp skew if the digest matches but policy still rejects the request.
Only after those steps should you rotate secrets. Premature rotation hides middleware bugs and creates downtime when multiple services still use the old value. Record what you learned in a short runbook for the next on-call engineer.
Yes whenever possible. Verify using the raw body first, then parse JSON for application fields. Parsing first encourages frameworks to discard the original bytes, which breaks signature checks and teaches teams the wrong default.
Verifying first also fails closed on truncated or corrupted bodies before your schema code runs. That reduces odd parser errors, keeps security decisions consistent, and makes metrics clearer when crypto failures spike separately from validation failures.
If your stack must parse early, configure middleware to retain the original rawBody or verify on an unmodified stream copy. Document that requirement in architecture notes so future refactors do not remove the buffer “to simplify” the pipeline.
Pair this order with clear 401 or 400 responses for failed signatures and dashboards that separate crypto failures from schema failures. Practice the failure path in staging with intentionally bad signatures. If a library forces early parsing, wrap it behind an adapter that still exposes the original buffer to your crypto step.
Hex digests encode each byte as two hexadecimal characters. Base64 encodes bytes into a shorter ASCII string using a 64-character alphabet, sometimes with URL-safe variants that replace plus and slash characters and omit padding.
Providers pick one encoding for headers. Comparing a hex string to a Base64 string will always fail even when the underlying HMAC bytes are identical. Auto-detect helpers may try both during debugging; production code should pin the documented form and reject surprises.
Base64URL appears in some modern APIs. It is not interchangeable with standard Base64 without translation. Normalize carefully if you accept multiple providers behind one verifier module, and keep per-provider settings rather than one global guess.
When logging, label which encoding you print. Unlabeled digests waste time in incidents because two teams may paste the same bytes in different encodings and conclude the secret is wrong. Add a unit test that fails if someone changes encoding assumptions without updating fixtures.
Rotate when a secret may have leaked, when someone with access leaves, on a planned schedule defined by your security policy, or when a provider asks you to after an incident on their side. Rotation limits how long a stolen secret remains useful to an attacker.
Plan dual-accept windows when possible: verify against the new secret and temporarily accept the old one until all publishers and subscribers switch. Abrupt rotation without overlap can drop valid events and create noisy failure alerts that hide other problems.
Update servers, serverless configs, workers, and any offline verifiers together. Stale serverless environment variables are a common cause of post-rotation outages that only affect one region or function.
After rotation, run fixture tests, watch verification failure metrics, then retire the old secret. Record the change in your incident or change log, and confirm no leftover copies remain in chat history or personal notes. Tell downstream owners before rotation day so offline scripts and secondary services update in sync.
A matching digest with an expired timestamp means the bytes and key material are consistent, but the event is outside your replay window. That is different from a wrong secret or a corrupted body, and the operational response should differ too.
Treating stale-valid the same as invalid can hide clock problems and push teams toward unnecessary secret rotations. Treating it the same as fully valid can reopen replay risk for captured traffic that is still cryptographically correct.
During debugging, a stale-valid result tells you the signed string and secret path are likely fine. Fix NTP, check time zones and leap smearing assumptions, or temporarily widen tolerance in staging while you investigate infrastructure time sync.
Document the distinction in runbooks so on-call engineers do not chase the wrong root cause at 2 a.m. Alert on stale-valid rates separately so clock regressions are visible without drowning in generic 401 noise. Include a sample stale-valid fixture in staging drills so the alert path is exercised on purpose.
Teams keep versioned fixtures: raw body files, header sets, and expected pass or fail outcomes for each provider scheme. Tests run the verifier in continuous integration on every pull request that touches HTTP middleware, body parsers, or crypto helpers.
Include negative cases: pretty-printed bodies, CRLF conversions, wrong encodings, expired timestamps, and truncated signatures. Positive cases alone miss the failures users hit in production after a “harmless” formatting change.
After framework upgrades, re-run the pack before release. Many signature outages start when a new body parser appears with default settings that consume the stream before verification code runs.
Store fixtures without live production secrets. Use provider sample secrets or dedicated staging keys, scrub customer data from captured bodies, and review fixture freshness when providers change header names or algorithms. Make the fixture pack part of release criteria, not an optional chore after customers report failures. Share ownership between platform and product teams so fixtures stay current when either side changes HTTP behavior.
Yes. Middleware that parses JSON, compresses or decompresses bodies incorrectly, trims whitespace, or normalizes headers can change the bytes or fields your verifier sees. The provider signature still reflects the original request that left their systems.
Order matters. Place raw-body capture and verification before parsers that consume the stream. If a proxy rewrites the body or strips signature headers, signatures computed at the origin will not match inside your application.
Symptoms include sudden failure spikes after deploying a new web framework version, enabling automatic JSON middleware globally, or inserting a new API gateway. Diff the raw body length and header set before and after the change.
Add a canary route that echoes body length and a hash of the raw buffer behind authentication. Use it when diagnosing environment-specific mismatches, and keep it out of public internet exposure. Review gateway configs whenever networking teams add new layers in front of webhook routes.
Provider webhook signatures authenticate the payload with application-level crypto using secrets or public keys you configure in software. Mutual TLS authenticates the client certificate at the TLS layer before HTTP processing begins.
Signatures travel with the message and can be verified after proxies terminate TLS. Mutual TLS proves the connection peer at the network edge but does not by itself prove a particular JSON body was untampered after TLS termination inside your network path.
Some high-security designs use both controls together. Many SaaS email providers standardize on signature headers because customers sit behind varied load balancers and platforms that already terminate TLS in different ways.
If you only control the receiver, implement the provider’s signature scheme correctly first and add monitoring. Add mutual TLS only when both sides support certificate issuance, rotation, and failure handling well enough for production. Write down which control owns which threat so audits do not assume one mechanism covers both layers.
The signed string is the exact byte sequence the provider feeds into HMAC or digital signature algorithms. It is often more than the raw body alone—for example message id, timestamp, and body joined with documented separators and encodings.
If your signed string omits a field, uses the wrong separator, or includes extra whitespace, the digest will not match no matter how correct the secret is. Debugging almost always starts by printing that string’s length and a canonical preview without leaking secrets.
Provider docs define the construction. Do not invent a friendlier format for readability. Compatibility requires matching their recipe character for character, including whether values are ASCII decimals or other encodings.
When tools show an “exact signed string” inspector, compare it to your server logs. Matching lengths with different content still fail; matching content with different encodings of the digest also fail. Align both layers before changing keys. Keep a golden example of the signed string in internal docs beside the provider link you followed.
Signature verification answers whether a request is authentic and untampered. Idempotency keys answer whether you have already processed this event id so retries do not duplicate side effects. You usually need both in production mail workflows.
Providers often retry on timeouts or 5xx responses. A valid signature on a second delivery is expected behavior. Without idempotency, you may create two tickets or send two emails for one event even though every request verified correctly.
Store event ids from headers or body fields in a durable set with a retention window longer than provider retry policies. Return success for duplicates after the first successful process so providers stop retrying.
Do not skip signatures because you have idempotency, and do not skip idempotency because you verify signatures. They protect different failure modes, and incidents often involve one control working while the other is missing. Review both metrics after incidents: signature failures and duplicate event-id hits tell different stories.
Svix-style mail webhooks commonly include an id header, a timestamp header, and a signature header. Names may appear as svix-id, svix-timestamp, and svix-signature, or as webhook-id, webhook-timestamp, and webhook-signature depending on the product wrapping the same pattern.
The signature header often carries one or more versioned signatures such as a v1 value with Base64 material. Verification reconstructs the signed string from id, timestamp, and raw body, then compares using the decoded signing secret.
When capturing traffic for debugging, preserve these headers exactly. Dropping the id or timestamp makes authentic requests impossible to verify even with the correct secret and a perfect body buffer.
If you terminate webhooks behind a proxy or API gateway, ensure it forwards the signature headers to your application unchanged. Silent header stripping is a frequent production outage cause after infrastructure changes that look unrelated to crypto. Add automated checks that fail deploys if required signature headers are missing from allowlists.
Other tools that share the same tags
Verified content & sources
This tool's content and its supporting explanations have been created and reviewed by subject-matter experts. Calculations and logic are based on established research sources.
Scope: interactive tool, explanatory content, and related articles.
ToolGrid — Product & Engineering
Leads product strategy, technical architecture, and implementation of the core platform that powers ToolGrid calculators.
ToolGrid — Research & Content
Conducts research, designs calculation methodologies, and produces explanatory content to ensure accurate, practical, and trustworthy tool outputs.
Based on 2 research sources:
Learn what this tool does, when to use it, and how it fits into your workflow.
Mail Webhook Signature Verifier is a free signature verifier for checking a webhook signature on inbound email events. Paste the exact raw request body, the signature header value, and the signing secret or public verification key. The tool rebuilds the signed string for the chosen provider scheme, computes the expected digest, and compares it to what the provider sent so you can verify signature online without writing a one-off script.
A mail webhook fails authentication when bytes do not match what the provider signed. Extra newlines, pretty-printed JSON, wrong secret encoding, or an expired timestamp can break a listener even when the payload looks fine. This page makes those mismatches visible: resolved scheme, expected versus received digests, exact signed string and byte length, body stats, timestamp delta when relevant, diagnostic checks, and a short recommended fix. Free use stays single paste-and-verify in the browser; paid users can add a Bulk Signature Verification Pack for multiple JSON cases.
Who is it for? Backend engineers and QA working with Resend/Svix, Mailgun, SendGrid, or generic HMAC listeners who need dependable signature verification online during staging and support. Optional AI Assistant help appears only after a failed or stale result, and only when you explicitly run it.
An inbound email event POST is what your server receives when mail is delivered, bounced, opened, complained, and similar. Providers attach a signature so your app can prove the request came from them and that the body was not altered. Teams use third party signature verification to check that provider header with the same secret or key the production listener uses.
Providers do not share one format. Resend and Svix often use svix-id, svix-timestamp, and a v1, signature with a whsec_ secret. Mailgun signs a timestamp and token pair. SendGrid event webhooks use a timestamp header plus an ECDSA signature—here you can verify signature with public key online using the Base64 or PEM verification key. Other systems use t= and v1= style headers or a simple raw-body HMAC with hex or Base64 digests. Auto-detect looks at headers, secret shape, and signature patterns so you do not have to guess every time.
People struggle when middleware re-serializes JSON, converts line endings, trims trailing newlines, or stores the secret in the wrong encoding. Manual checks are slow and easy to get wrong. This verifier runs the same class of checks in one place and labels the likely root cause so you can fix the listener instead of rotating secrets blindly. Related request debugging for non-signature traffic can use a webhook tester; building digests alone can use an HMAC generator.
t=, v1=, or Generic HMAC. Manual selection overrides detection when you already know the provider.svix-id and svix-timestamp. Mailgun: timestamp and token (or values pulled from JSON when present). SendGrid: X-Twilio-Email-Event-Webhook-Timestamp.\r\n markers, and a pass/fail verification checks list..json or .txt case files (up to 1 MB each, 4 MB combined on web). Optionally enable AI Assistant for failed or stale cases. Download a ZIP of per-file verification reports plus a summary CSV. Free plans stay on single paste-and-verify with no file batch.Resend or Svix listener failing in staging. Paste the captured body, svix-* headers, and whsec_ secret. Confirm whether the digest matches or whether body re-serialization changed the signed bytes.
Mailgun signature debug. Supply timestamp, token, signature, and signing key. Catch cases where the listener signed the wrong string (for example the whole body instead of the timestamp-token pair).
SendGrid event webhook setup. Paste the event body, signature and timestamp headers, and the ECDSA public verification key. Confirm the signed string and key format before enabling production delivery.
Generic HMAC providers. Use Generic HMAC with hash, secret encoding, and digest format controls when you receive sha256=, hex, or Base64 signatures from Postmark-style or custom mail hooks.
Framework middleware issues. After Express, API Gateway, or similar layers parse JSON, re-verify with the exact raw bytes your route actually saw. Use the optional AI Assistant note field to describe the stack when the deterministic checks already show a body mismatch. Manual header and method experiments against a staging URL can use an http request builder.
Timestamp window tuning. When the digest matches but the clock skew is large, read the valid-stale-timestamp status and adjust tolerance or clock sync before widening acceptance in production.
Regression packs. Paid users keep a folder of saved JSON cases, run Bulk Signature Verification Pack after a release, and attach the ZIP summary to a ticket. Pair forwarder dry-runs with an inbox webhook forwarder when you also need to POST sample payloads.
Verification is a deterministic compare, not a guess. The tool first resolves the scheme (manual or auto). It then builds the exact signed string that scheme requires—for example id-timestamp-body for Svix-style checks, timestamp-token for Mailgun, timestamp-plus-body for SendGrid ECDSA, or the raw body for generic HMAC.
The signing secret is decoded according to the selected secret format (or auto rules such as stripping a whsec_ prefix and treating the rest as Base64). A message authentication digest is computed with the selected hash for HMAC schemes, or an ECDSA verify is performed for SendGrid with the public key. Digests are compared in the expected encoding (hex, Base64, or Base64URL). Timing-safe string compare is used when lengths match.
When digests disagree, the tool runs structured mismatch probes: minified versus pretty JSON, CRLF versus LF, trailing newlines, encoding and prefix differences, secret encoding alternatives, algorithm mismatches, and Mailgun whole-body mistakes. Each probe becomes a verification check with a pass or fail detail. A root-cause code drives the headline, summary, and recommended fix. Timestamp schemes also compute delta seconds against your tolerance; a matching digest outside the window surfaces as valid but stale.
AI Assistant does not replace the crypto result. It ranks likely causes from non-secret metadata after you opt in. Bulk pack processing verifies each uploaded case file, optionally runs soft-fail AI on failed or stale cases, and packages per-file JSON reports with a summary CSV into a ZIP—not base64 blobs of every upload. Authentication and content-risk signals on outbound message source can be reviewed with an email deliverability check.
| Scheme tab | What you typically supply |
|---|---|
| Auto-Detect | Headers, secret shape, and signature pattern choose Resend/Svix, Mailgun, SendGrid, or generic HMAC |
| Resend / Svix | svix-id, svix-timestamp, v1 signature, whsec_ or decoded secret, raw body |
| Mailgun | Timestamp, token, signature, signing key (JSON fields can supply timestamp/token) |
| SendGrid | Event body, signature header, timestamp header, ECDSA public verification key |
| t=, v1= | Timestamped signature header plus secret and raw body |
| Generic HMAC | Raw body, signature digest, hash and encoding options |
| Capability | Free | Paid bulk |
|---|---|---|
| Single paste-and-verify in browser | Yes | Yes (still available) |
| Sample Input presets | Yes | Yes |
| Optional AI Assistant on failed/stale single results | Yes (on demand) | Optional per failed/stale case in pack |
| Files per Bulk Signature Verification Pack | Not available (0 file batch) | 1–5 |
| Per-file / combined pack size (web) | — | 1 MB / 4 MB |
| Bulk output | — | ZIP: per-file verification JSON + summary CSV (+ optional AI notes) |
| Input field | Practical limit |
|---|---|
| Raw body | 500,000 characters (extra text is trimmed) |
| Signature header | 8,192 characters |
| Signing secret / key | 16,384 characters |
| Raw headers paste | 32,768 characters |
| AI context note | 600 characters |
| Default timestamp tolerance | 300 seconds (editable in Advanced Options) |
Always paste the raw body bytes your server actually verified—or should have verified—before any JSON pretty-print or re-stringify step. Body stats and the signed-string inspector exist so you can see whitespace and line endings that digests care about.
Start with Auto-Detect or a Sample Input when learning. Switch to a manual scheme tab when detection is wrong or when you are testing one provider on purpose. For secrets, try Auto encoding first; if you know the secret is hex or Base64, set Secret Encoding explicitly instead of rotating the key.
Treat AI Assistant as a second opinion after the checklist. Add a short note about your framework only when it helps. It never needs the raw secret, and verification still succeeds or fails without it.
For bulk packs, use JSON or text case files only, stay under count and size caps, and do not close the page while processing. Review skipped-file notes and the summary CSV when counts look off. Desktop unlimited modes may raise upload caps based on device resources; optional AI still uses the remote assistant path with credits where that applies.
Honest limits: authorized debugging only—do not forge provider signatures or probe systems you do not control. Free use is one case at a time with no multi-file ZIP. Very large pastes hit character caps. Validation errors appear when required pieces are missing or malformed. ECDSA and HMAC results depend on correct keys and exact bytes; the tool cannot invent a missing secret or repair a truncated capture. This page is for provider webhook crypto checks, not disposable inboxes or document signing workflows.
Best practice: keep a small library of known-good and known-bad payloads per provider; verify one happy path; then force a pretty-print and a CRLF variant to confirm your listener still fails closed; finally run a paid Bulk Signature Verification Pack before release so digests, root causes, and summary counts live in one archive.
Summary: Paste a raw mail webhook body, signature header, and signing secret to check Resend/Svix, Mailgun, SendGrid, timestamped, or generic signed payloads and see why a mismatch happened. Review digests, signed-string bytes, and clear fix hints in your browser. Paid users can run a Bulk Signature Verification Pack on multiple JSON cases and download a ZIP of reports; AI Assistant can help diagnose failed cases when you explicitly enable it.