Dinamically create list of contacts who have opened a marketing email

Hi everyone,
I’m working on automating the creation of a static list in HubSpot for contacts who have opened specific marketing emails.
This is something that is really easy to do from GUI, it only involves setting one filter. See picture attached

I have gone through all of the documentation and cannot see what are the right filters to set in order to do this via API.
Does anyone know how to proceed? Thanks for your help in advance

Hey @Themien the create a list api should be what you’re looking for!

Hi @TomM2 ,

thank you for your response! I have read the Create a List API page multiple times, but the filters needed to achieve this are not mentioned anywhere. I am already using the list creation endpoint for another use case and understand how it works.

My main question is: What are the parameters to use to select “Marketing email activity” for email opens, given some specific email IDs?