---
title: Data fetching in HubSpot Workflows
description: Discover how to leverage HubSpot Workflows and webhooks to create seamless data integrations and validate emails through the Hunter Email API.
image: https://www.hubex.io/hubfs/webhooks_poster_2.jpg
---

[![logo_dark](https://www.hubex.io/hubfs/Brand%20Assets/logo_dark.png) ![logo_white](https://www.hubex.io/hubfs/Brand%20Assets/logo_white.png) ![logo_dark](https://www.hubex.io/hubfs/Brand%20Assets/logo_dark.png) ![logo_white](https://www.hubex.io/hubfs/Brand%20Assets/logo_white.png) ![logo_dark](https://www.hubex.io/hubfs/Brand%20Assets/logo_dark.png)](https://www.hubex.io)

- [Revenue Operations](https://www.hubex.io/services/revenue-operations)
- [HubSpot](https://www.hubex.io/services/hubspot)
  
  
  
  
  
    - [Onboarding & Implementation](https://www.hubex.io/services/hubspot)
    - [Integrations](https://www.hubex.io/services/apps-integrations)
    - [Consulting & Workshops](https://www.hubex.io/services/consulting)
- Case Studies
  
  
  
  
  
    - [Gire Mobility](https://www.hubex.io/case-studies/gire-mobility)
    - [Vainu](https://www.hubex.io/case-studies/vainu)
    - [Proviso](https://www.hubex.io/case-studies/proviso)
    - [Culture Intelligence](https://www.hubex.io/case-studies/culture-intelligence)
- [Content](https://www.hubex.io/content)
- [About](https://www.hubex.io/about)

[Let's Talk](https://www.hubex.io/contact)

- [Revenue Operations](https://www.hubex.io/services/revenue-operations)
- [HubSpot](https://www.hubex.io/services/hubspot)
  
  
  
  
  
    - [Onboarding & Implementation](https://www.hubex.io/services/hubspot)
    - [Integrations](https://www.hubex.io/services/apps-integrations)
    - [Consulting & Workshops](https://www.hubex.io/services/consulting)
- Case Studies
  
  
  
  
  
    - [Gire Mobility](https://www.hubex.io/case-studies/gire-mobility)
    - [Vainu](https://www.hubex.io/case-studies/vainu)
    - [Proviso](https://www.hubex.io/case-studies/proviso)
    - [Culture Intelligence](https://www.hubex.io/case-studies/culture-intelligence)
- [Content](https://www.hubex.io/content)
- [About](https://www.hubex.io/about)

[Let's Talk](https://www.hubex.io/contact)

[Back to all articles](https://www.hubex.io/content)

![](https://www.hubex.io/hs-fs/hubfs/webhooks_poster_2.jpg?width=1280&name=webhooks_poster_2.jpg)

# Data fetching in HubSpot Workflows

![Christian Fredrik Stene](https://www.hubex.io/hs-fs/hubfs/IMG_1988.jpeg?width=80&name=IMG_1988.jpeg) 

Written by  [Christian Fredrik Stene](https://www.hubex.io/content/author/christian-fredrik-stene) 

 24. September 2024

For companies using HubSpot CRM as their “source-of-truth” when it comes to customer data, often relies on third party tools to enrich and contextualize the data. Many of these tools in the sales- and marketing space comes with a prebuilt HubSpot Connector – but there are still tools that would require a manual integration.

For these use cases - you might want to take a look at the “Send a webhook” workflow action in HubSpot Workflows. With the power of HubSpot’s automation platform and Webhooks, you can create your own “mini-integrations” using HubSpot workflows 🤯.

 

## **How it works**

To demonstrate how the webhook action can be used – I’ve set up a new workflow where my goal is to check if an email is valid through the Hunter Email API.

First of all – to use the Hunter APIs, you’ll need an API key (which is free with usage limits). Visit Hunter.io here: [https://hunter.io/api](https://hunter.io/api)

In this case, I wanted to check the email validity for any contact that lands in our CRM. There are obviously cases where you would want to change this - for example tie it to contacts that subscribe to your newsletter or other communications to reduce the required API credits needed.

 

### **1. Configuring the workflow action**

![hubspot_workflows_webhooks](https://www.hubex.io/hs-fs/hubfs/hubspot_workflows_webhooks.png?width=3674&height=2770&name=hubspot_workflows_webhooks.png)

From reading the Hunter API Documentation, I know their API endpoint expects a GET request, with the obtained API key and Email address we want to check passed as query parameters. This configuration obviously depends on the API endpoint you’re trying to hit - and each endpoint might require different properties passed as query parameters.

To add the API key – you should store it as a “secret” in HubSpot Workflows which is more secure than adding it as a static value.

 

### **2. Sending the first test request**

![webhook_mapping_response](https://www.hubex.io/hs-fs/hubfs/webhook_mapping_response.png?width=422&height=726&name=webhook_mapping_response.png)

At this point - I sent my first request using the “Test action” feature - which returns successfully. The API endpoint does return a lot of data, and the next step is to inspect the response data, and choose the properties I want to output from the workflow. In my case, I’m mostly interested in wether the email is valid or not, which exists as a boolean (true/false) property. 

When I’ve configured the output properties, I can save the workflow action.

 

### **3. Handling the response**

The hard part is over - and what remains now is to handle the response. It is now possible to create if/else branches based on the webhook output. In our case I created a check for wether the email was indeed valid. I can now handle subscriptions, marketing contact status and similar operations based on the information given.

![webhook_branching](https://www.hubex.io/hs-fs/hubfs/webhook_branching.png?width=2242&height=1176&name=webhook_branching.png)

 

## Conclusion

Even though HubSpot has become established enough so that most third party tools will have a HubSpot connector if applicable - I still find there are some use cases where no such connector exist. It might also be relevant for in-house built tools where you’ll want to notify of changes in HubSpot or fetch some additional data and enrich your data in HubSpot.

Whatever the use case is - the “Send a webhook” workflow action is really powerful if you know how and when to use it. I hope this post illustrates that it’s not prohibitively difficult.

Do you have any questions? Don’t hesitate to reach you through our website chat.

 

Tags: [Integrations](https://www.hubex.io/content/tag/integrations)

You may also like

<https://www.hubex.io/content/integrate-your-saas-to-hubspot-where-to-start>

![](https://www.hubex.io/hs-fs/hubfs/Integrating%20your%20SaaS%20thumbnail.png?width=630&name=Integrating%20your%20SaaS%20thumbnail.png)

 09. December 2024

Integrating your SaaS to HubSpot: Where to start?

<https://www.hubex.io/content/our-9-favorite-apps-for-hubspot-crm-operations>

![](https://www.hubex.io/hs-fs/hubfs/apps.png?width=630&name=apps.png)

 25. February 2025

Our 9 Favorite Apps for HubSpot CRM Operations

<https://www.hubex.io/content/get-started-with-custom-integrations-to-hubspot>

![Custom integration graphic by Freepik](https://www.hubex.io/hs-fs/hubfs/custom%20integration%20thumbnail.jpg?width=630&name=custom%20integration%20thumbnail.jpg)

 05. August 2025

Get started with custom integrations to HubSpot

![Hubex](https://www.hubex.io/hs-fs/hubfs/Brand%20Assets/logo_white.png?width=120&name=logo_white.png)

We help B2B technology leaders unite marketing, sales, and customer success on HubSpot CRM to deliver predictable and repeatable results through a proven Revenue Operating System.

[![HubSpot Platinum Partner](https://www.hubex.io/hubfs/SVG_platinum-horizontal-color.svg)](https://app.hubspot.com/ecosystem/7174019/marketplace/solutions/hubex-no) [![HubSpot Impact Award - Customer First](https://www.hubex.io/hs-fs/hubfs/HubSpot_ImpactAwards_2021_CustomerFirst3.webp?width=200&name=HubSpot_ImpactAwards_2021_CustomerFirst3.webp)](https://app.hubspot.com/ecosystem/7174019/marketplace/solutions/hubex-no)

### Links

- [Privacy Policy](https://www.hubex.io/privacy-policy)
- [Contact Us](https://www.hubex.io/contact)

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Christian Fredrik Stene",
    "url" : "https://www.hubex.io/content/author/christian-fredrik-stene"
  },
  "dateModified" : "2025-08-21T12:15:21.595Z",
  "datePublished" : "2024-09-24T08:18:44.000Z",
  "headline" : "Data fetching in HubSpot Workflows",
  "image" : [ "https://www.hubex.io/hubfs/webhooks_poster_2.jpg" ],
  "mainEntityOfPage" : {
    "@id" : "https://www.hubex.io/content/data-fetching-in-hubspot-workflows",
    "@type" : "WebPage"
  },
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://www.hubex.io/hubfs/logo_dark.png"
    },
    "name" : "Hubex AS"
  }
}
```