Extracting emails from workflows

Is there is a way to get emails automatically sends by a workflow like from the workflow API or from the emails association ?

https://legacydocs.hubspot.com/docs/methods/workflows/v3/get_workflows

Thanks

Hey, @JLegendre8 :waving_hand: Looking at the documentation, there is not a single endpoint we can use. Automated emails have an email type of

"emailType": "AUTOMATED_EMAIL"

but the endpoint queries on emailId not type.

If you have a moment, adding your suggestion to the Ideas Community and getting some upvotes will be very helpful in getting your suggestion in front of the Product team. If you add a link back to your Idea post, I’ll be sure to give it an upvote to help get the ball rolling.

Best,

Jaycee

I found that in “actions”, a field of :

GET /automation/v3/workflows/:workflowId, we can navigate to retrieve emails linked to the workflow, unfortunately for the moment there is only the first branch of my workflow that appears in the actions field, I dont know if Im doing somethings wrong or not.
If I can get all the actions and branch in this action field, it would be very helpfull because there are also the campaign id and the step number, the campaign id can link to email_event and then to contacts