We are working with python and HubSpot API, using both the hubspot api library for python and the requests library depending on the endpoint we are using.
We have found a roadblock trying to retrieve the marketing emails and tie them to a contact and get the exact action that contact took with the email (either open, click, bounce, etc).Does anyone know if this is possible and if it is, how can make the call/calls?
You should start there and see if you find a starting point to create your code (list the events and look for clicks and email opens, then use the Email Marketing API and Contacts API to refine the data you need):
2 weeks ago
- last edited
a week ago
by BérangèreL
Member
Marketing emails api endpoint
SOLVE
Hi @sylvain_tirreau and @Balaji_Mavlers1! Thanks for your answer! I'm testing it and I have one question that maybe you can solved, How should I write the request to get me all the events related to an specific campaign?
I already have the campaign ids, base on a list of campaigns ids (using a for loop for example) I would like to get all the events related to it.
The goal with this is not to query all the events everyday, but just to get the campaigns I'm interested in.
You should start there and see if you find a starting point to create your code (list the events and look for clicks and email opens, then use the Email Marketing API and Contacts API to refine the data you need):
Have a great day and thanks so much in advance for your help! ❤️ Bérangère
HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates. Learn More.