Debug a Standard Webhooks signature failure
The v1 HMAC signature covers the webhook ID, the timestamp, and the original request body, joined with periods. Parsing and re-serializing JSON can change the bytes and invalidate a correct signature.
Try the synthetic example
Install Hookmetry MCP v0.1.5 locally, then ask your editor in demo mode to diagnose demo-standard-webhooks and identify the failed step. The tool describes a synthetic signature mismatch caused by changing the JSON bytes.
Test your local receiver
- Ask Hookmetry MCP to export a regression test with the
standard-webhooksprofile. Save the returned file asstandard-webhooks-webhook.test.cjs. - Set
HOOKMETRY_TEST_URLto your loopback receiver andHOOKMETRY_STANDARD_WEBHOOKS_TEST_SECRETto the same syntheticwhsec_key configured on that receiver. - Run
node --test standard-webhooks-webhook.test.cjs.
The export sends a fresh v1 signature to a receiver on your machine. Hookmetry’s temporary capture can report the signing headers it sees. Use the local receiver to verify the signature.