Is there any official documentation that lists the IP address range for outbound HTTP requests from custom code blocks in HubSpot?
Hello,
I developed a custom code block that performs a REST api http request towards an internal web service whenever a contact satisfies some conditions. I need to find if there is a specific range of ip addresses from which I can expect the api call to be sent, so that I can allowlist them in my service.
I found in Not receiving HubSpot system or notification emails that the Marketing, Sales and Service Hubs all have specific sets of ip addresses but the Operations hub is not mentioned.
Moreover, I tested the implementation and the IP address from which I receive the requests is none of the ones that are listed in the link.
Is there some piece of documentation I am missing?
regards
Moderator Note: this post was reviewed for relevancy and optimized for clarity on October 28, 2025. Thank you for your contributions to the HubSpot Community!
Hi @aaberni
Unfortunately, HubSpot does not publish IP addresses or IP ranges for requests coming from its server, since they change so frequently.
If you’re looking to verify that a request is coming from HubSpot, I’d recommend taking a look at our docs on validating requests from HubSpot: “Webhooks | Validating Requests”.
Hope this helps!
Hello @jbogaert ,
actually the two headers referred to in the doc pages you linked (X-HubSpot-Signature and X-HubSpot-Signature-Version) are not automatically populated when the requests are performed by a custom code block in a workflow. I suppose I could share a secret key between my external rest endpoint and hubspot and use that secret to compute a digest of the request payload and put that digest in a header field that I could call “X-HubSpot-Signature”. In that case I would be reproducing the hubspot native functionality from whithin my custom code block, and that seems like a redundancy I could go without.
I don’t get why the ip addresses from which marketing emails are coming ( Understand why contacts didn't receive marketing emails ) are published but the ones I need are not.
regards
Hi there! I asked one of our experts and unfortunately what you suggested (using a shared secret value) is probably your best bet.
Unless you’re able to use the webhook action to make the request and, then add the response body from the webhook action as an input to the custom code action.
The email IPs are shared for a very specific use case, but they’re a tiny subset of the IP addresses that HubSpot actually uses.
HubSpot uses hundreds of IP addresses, and they change all the time, so publishing a full list and keeping it up to date wouldn’t be possible.