In our analytical tools we need to know which contact has opened an email. How do I get a relation between a Marketing email (emailcontentID) and an email event. In the example apis we can only get campaignID from an email event.
There are 12 event types that can be generated by HubSpot's Email API during the lifecycle of an email message. They are broadly grouped into categories: Submission, Delivery, User Engagement, and User Status. Event types, event categories, and their relationships are diagrammed below.
As I mentioned that ID is Campaign ID not the email message ID. The reason is that we have for one Campaign, multiple Marketing emails sent out. What you are showing below is Campaign ID, not the marketing email id. Can we get marketing email id for that event.
For example in your portal you all make the following call emailCampaignID is 93764993 and marketing email id is
In other words, if my campaign has three Marketing emails associated with it, and all of them are sent out to one group, how do I know through api which email it is sent to?
I have double-checked this with our product experts.
1 campaign = 1 single send of 1 marketing email
If you're viewing the details for an email in HubSpot, the Internal HubSpot ID(s) would be the campaign_id(s) for the email. Since each campaign represents a specific send of an email, it's possible for a single email to have multiple Internal IDs/campaign_ids.
In other words, acampaign represents a single send of an email but an email can have multiple campaign IDs.