# Marketing Email API

**URL:** <https://community.hubspot.com/t/marketing-email-api/99065>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [January 31, 2024, 7:51am UTC](https://community.hubspot.com/t/marketing-email-api/99065 "2024-01-31T07:51:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MSagar](https://avatars.discourse-cdn.com/v4/letter/m/c2a13f/32.png) [@MSagar](https://community.hubspot.com/u/MSagar)\
**Post date:** [January 31, 2024, 7:51am UTC](https://community.hubspot.com/t/marketing-email-api/99065/1 "2024-01-31T07:51:17Z")

</div>

Hi Everyone  
We are using 2 APIs right now to source Marketing email data  
1. To get email events: [Email Events API Overview - HubSpot docs](https://developers.hubspot.com/docs/api-reference/legacy/reporting/email-analytics/guide)  
2. To get email content (Subject, Body)  
[Marketing API | Marketing Email - HubSpot docs](https://developers.hubspot.com/docs/api-reference/legacy/marketing/marketing-emails/guide)

Can you help us in terms of how can I combine both the tables using a common key or if there is a additional mapping table which can be used.

---

<div class="post-metadata">

**Author:** ![GRajput](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/grajput/32/102020_2.png) [@GRajput](https://community.hubspot.com/u/GRajput)\
**Post date:** [January 31, 2024, 8:01am UTC](https://community.hubspot.com/t/marketing-email-api/99065/2 "2024-01-31T08:01:26Z")

</div>

Hi @MSagar

We can’t combine both the email and the events as both are separate.

**1. Marketing emails -** The Marketing Emails API can be used to programmatically create, update, and get details about marketing emails. You can also query details about the post-send statistics of a specific email or set of emails. These statistics should match what you can access in the app on the _Details_ section of a particular email and will be returned under the stats object in your JSON response.

**2. Marketing events -** A marketing event is a CRM object, similar to contacts and companies, that enables you to track and associate marketing events, such as a webinar, with other HubSpot CRM objects. Below, learn more about working with the marketing event API to integrate marketing events into an app.

 ![GRajput_0-1706687810523.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/e/b/eb760a5505391e09118ea0a37ecb7d345296139b.png)

For more reference, you can refer to the link attached ([CLICK HERE](https://developers.hubspot.com/docs/api/marketing/marketing-email))

“I hope this will help you out. Please mark it as **Solution Accepted and upvote** to help another Community member.  
Thanks!”
