APIs & Integrations

Assoc-Sacto
Participant

Using API to pull email data by contact

Hello, 

I am looking for a way to pull marketing email data (opens, clicks, etc) by contact and by email. 

The "email events overview" (/email/public/v1/events) only ties to campaign, not to individual email. 

0 Upvotes
1 Reply 1
TomM2
Key Advisor | Partner
Key Advisor | Partner

Using API to pull email data by contact

Hey @Assoc-Sacto the endpoint you've mentioned should do this, I think the wording is confusing here as "campaigns" doesn't mean a campaign set in the UI, it means a specific email that has been sent. You could do a get all campaign IDs for example to get the campaign IDs for each email sent. Then use those, or the recipient email through the events api to get events for the specific email by campaign ID or by the recipient email. 

Tom Mahon
HubSpot Expert | Digital Marketing Specialist | Community Champion
HubSpark

Book a meeting

Did my post help answer your query? Help the community (and me) by marking it as a solution.