# Retrieve emails from Hubspot Workflow API

**URL:** <https://community.hubspot.com/t/retrieve-emails-from-hubspot-workflow-api/99763>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [February 8, 2024, 2:00pm UTC](https://community.hubspot.com/t/retrieve-emails-from-hubspot-workflow-api/99763 "2024-02-08T14:00:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ahmedkhanpc](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@Ahmedkhanpc](https://community.hubspot.com/u/Ahmedkhanpc)\
**Post date:** [February 8, 2024, 2:00pm UTC](https://community.hubspot.com/t/retrieve-emails-from-hubspot-workflow-api/99763/1 "2024-02-08T14:00:35Z")

</div>

I want to get email from workflow using Hubspot API. Those Emails in Hubspot app are identitfied by an ID and campaign, they’re also applied on a specific action in workflow I tried multiple endpoints and the best seems to request for every workflow with GET /automation/v3/workflows/:workflowId. This request gives me a field nammed “actions” in which I can navigate to retrieve workflow actions and linked emails. Unfortunately it seems that the request only send the first branch of the workflow and I cant retreive emails from other branchs.

Does someone have an idea to get all branches from actions or an other option to get automated emails from workflows ?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [February 8, 2024, 9:38pm UTC](https://community.hubspot.com/t/retrieve-emails-from-hubspot-workflow-api/99763/2 "2024-02-08T21:38:30Z")

</div>

Hi, @Ahmedkhanpc 👋 You are not doing anything wrong. This isn’t possible currently. I gave a more detailed reply in this post [https://community.hubspot.com/t5/APIs-Integrations/Workflow-API-get-all-actions/m-p/886533/highlight/true#M69382](https://community.hubspot.com/t5/APIs-Integrations/Workflow-API-get-all-actions/m-p/886533/highlight/true#M69382)

But the short answer is, this endpoint was created _before_ branches in workflows were added as a feature.

Best,

Jaycee
