Retrieve emails from Hubspot Workflow API

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 ?

Hi, @Ahmedkhanpc :waving_hand: 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

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

Best,

Jaycee