# Integrating external API to HubSpot workflow

**URL:** <https://community.hubspot.com/t/integrating-external-api-to-hubspot-workflow/34190>\
**Category:** APIs & Integrations\
**Tags:** workflows\
**Created:** [March 19, 2021, 2:42pm UTC](https://community.hubspot.com/t/integrating-external-api-to-hubspot-workflow/34190 "2021-03-19T14:42:13Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![afs25](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/afs25/32/28756_2.png) [@afs25](https://community.hubspot.com/u/afs25)\
**Post date:** [March 19, 2021, 2:42pm UTC](https://community.hubspot.com/t/integrating-external-api-to-hubspot-workflow/34190/1 "2021-03-19T14:42:13Z")

</div>

Hi,

I am aware that it is possible to use webhooks to POST contact data to an external service. But I couldn’t find any information on getting data from an external service to use in a workflow. Is there a way to initiate a GET call to an external API in a HubSpot workflow?

Thank you!

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [March 19, 2021, 8:35pm UTC](https://community.hubspot.com/t/integrating-external-api-to-hubspot-workflow/34190/2 "2021-03-19T20:35:48Z")

</div>

Hi @afs25

Can you tell us more about what you are doing so we can provide the best answer possible 😺

---

<div class="post-metadata">

**Author:** ![VP7323](https://avatars.discourse-cdn.com/v4/letter/v/e99b99/32.png) [@VP7323](https://community.hubspot.com/u/VP7323)\
**Post date:** [July 7, 2023, 5:07am UTC](https://community.hubspot.com/t/integrating-external-api-to-hubspot-workflow/34190/3 "2023-07-07T05:07:57Z")

</div>

Hey @dennisedson ,

I think the use case described by @afs25 is very clear. I’m also interested to know if HubSpot has such capability.

Is it possible to add a routine in HubSpot that would make a call to an external API service to grab some data and use them to fill some form, or in a download or when sending an email (to fill in placeholders of email template), etc.?

Thanks

---

<div class="post-metadata">

**Author:** ![dom\_1080](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dom_1080/32/31639_2.png) [@dom\_1080](https://community.hubspot.com/u/dom_1080)\
**Post date:** [February 8, 2024, 10:34pm UTC](https://community.hubspot.com/t/integrating-external-api-to-hubspot-workflow/34190/4 "2024-02-08T22:34:36Z")

</div>

Same here. This would be an incredibly useful feature , anyone been able to find an effective straight forward to implement worka round ?

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [February 9, 2024, 1:11am UTC](https://community.hubspot.com/t/integrating-external-api-to-hubspot-workflow/34190/5 "2024-02-09T01:11:07Z")

</div>

Make sure to check out custom coded actions which allows you to interact withe external apis

> **[Workflows | Custom Code Actions - HubSpot docs](https://developers.hubspot.com/docs/api-reference/legacy/automation/workflow-actions/custom-code-actions)**
>
> Instructions for using custom code actions in workflows

---

<div class="post-metadata">

**Author:** ![afs25](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/afs25/32/28756_2.png) [@afs25](https://community.hubspot.com/u/afs25)\
**Post date:** [March 22, 2021, 9:54am UTC](https://community.hubspot.com/t/integrating-external-api-to-hubspot-workflow/34190/6 "2021-03-22T09:54:48Z")

</div>

Hi @dennisedson,

We currently update timeline events in HubSpot when users (HubSpot contacts) perform certain actions in our application. We would like to use HubSpot workflows to send emails triggered by these timeline event updates. The body of the email will contain personalised content and some of that content is stored in our application. We are aware that we could send all the required information as part of the timeline event but we would like to avoid doing that because: (1) we already have API endpoints to provide that information; (2) most of the information is not related to users (HubSpot contacts) and relates instead to projects, tasks and other entitties in our application. Those entities are frequently updated, so we would like to avoid having timeline events in HubSpot containing outdated data.

It would make sense to make a GET API call as part of the workflow to fetch the latest project/task data. Is that at all possible?

Thank you for your help.

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [March 22, 2021, 2:52pm UTC](https://community.hubspot.com/t/integrating-external-api-to-hubspot-workflow/34190/7 "2021-03-22T14:52:49Z")

</div>

Hi @afs25

Thanks for additional context.

Going to add @Kevin-C and [@webdew](https://community.hubspot.com/t5/user/viewprofilepage/user-id/131510) to see if they have any insights here 😀

---

<div class="post-metadata">

**Author:** ![KJohnson07](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kjohnson07/32/48165_2.png) [@KJohnson07](https://community.hubspot.com/u/KJohnson07)\
**Post date:** [October 25, 2021, 3:34pm UTC](https://community.hubspot.com/t/integrating-external-api-to-hubspot-workflow/34190/8 "2021-10-25T15:34:00Z")

</div>

Did this ever get answered? I have the same question. Thanks!

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [October 25, 2021, 6:54pm UTC](https://community.hubspot.com/t/integrating-external-api-to-hubspot-workflow/34190/9 "2021-10-25T18:54:48Z")

</div>

@KJohnson07 ,

[Custom coded actions](https://knowledge.hubspot.com/workflows/use-custom-code-actions-in-workflows) might be what you need to employ
