How to verify HubSpot webhook signatures (v1, v2, and the v3 you should use)

Learn how to verify HubSpot webhook signatures v1, v2, and v3. Avoid common mistakes and protect your app with the recommended v3 version. Includes Node.js code.

miércoles, 8 de julio de 2026 • 3 min read • Q2BSTUDIO Team

Complete guide to validating HubSpot webhook signatures

Integration with external systems via webhooks is a common practice in today's digital ecosystem. Platforms like HubSpot use this mechanism to notify events in real time, but the security of those communications depends on correct signature verification. Over the years, HubSpot has implemented three signature schemes (v1, v2, and v3), each with different requirements. Knowing their differences and applying the proper validation is crucial to protect data integrity and avoid processing forged requests.

The oldest scheme, v1, is based on an SHA-256 hash of the client secret concatenated with the raw request body. It does not include a timestamp, so it lacks protection against replay attacks. Version v2 adds the HTTP method, the full URI, and the body, but still does not include a timestamp. Both use hexadecimal encoding. Version v3, recommended by HubSpot, uses HMAC-SHA256 with the secret as the key, signing the concatenation of the method, normalized full URI, raw body, and the timestamp from the X-HubSpot-Request-Timestamp header. The result is Base64-encoded, providing an additional layer of security against replays.

One of the most common errors when implementing verification is not handling the raw body correctly. Many frameworks, such as Express, automatically parse JSON, altering the original bytes. To validate v3, it is essential to access the unmodified body before any deserialization. Another critical point is URI normalization: HubSpot decodes certain characters and removes fragments before signing. Ignoring this causes signatures not to match. Additionally, the timestamp must be part of the signed string, and the comparison must be done in constant time to avoid timing attacks.

To ensure integration reliability, many companies turn to a middleware that captures events even when the primary destination is unavailable. This is where it makes sense to have custom applications that incorporate a queue, retry, and event storage system. At Q2BSTUDIO we develop custom software tailored to each business's specific needs, including secure webhook management. Additionally, we integrate artificial intelligence and AI agents to automate event responses, optimizing critical processes such as lead creation or data synchronization.

Signature verification is only one part of communication security. A comprehensive cybersecurity approach must also include encryption in transit, secret management, and access monitoring. In this context, the AWS and Azure cloud services we offer enable the deployment of resilient and scalable infrastructures, with load balancers and serverless functions that process webhooks efficiently. If your organization handles large volumes of events, combining business intelligence services with Power BI can help visualize patterns and detect anomalies in real time.

For teams that prefer to outsource webhook management, solutions like EventDock exist, acting as a proxy by verifying signatures and queuing events. However, when full control over the data flow is required, it is most advisable to build a custom layer using AI for enterprise adapted to business processes. At Q2BSTUDIO we design hybrid architectures that combine verification, data enrichment, and workflow orchestration functions, all under a single umbrella of security and scalability.

Ultimately, mastering HubSpot webhook signature verification is essential for any integration seeking robustness. But security does not end there: failure recovery, retry management, and event traceability are aspects that custom software can elegantly solve. If you are evaluating how to improve your integration architecture, we invite you to learn about our solutions in AWS and Azure cloud services and discover how we can help you implement a reliable and secure notification system.

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.