Validate HubSpot webhook signatures to confirm authenticity (v3 signature)

domain: developers.hubspot.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. When receiving a webhook POST, extract the X-HubSpot-Signature-v3 header and the X-HubSpot-Request-Timestamp header
  2. Reject any request where the timestamp is more than 5 minutes old to prevent replay attacks
  3. Construct the source string as: HTTP method + full request URI + raw request body + timestamp value (all concatenated, no separators)
  4. Compute an HMAC-SHA256 of the source string using your app's client secret as the key
  5. Base64-encode the resulting HMAC and compare it to the header value — reject the request if they do not match

Known gotchas

Related routes

Configure HubSpot webhook subscriptions v3 and validate payload signatures to confirm authenticity
developers.hubspot.com · 6 steps · unrated
Configure HubSpot webhook subscriptions v3 and validate incoming payloads using the signature v3 HMAC scheme
developers.hubspot.com · 6 steps · unrated
Implement and validate webhook signature verification for multiple IDV providers
identity-general · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans