# Create Email using contact from crm through API

**URL:** <https://community.hubspot.com/t/create-email-using-contact-from-crm-through-api/46618>\
**Category:** APIs & Integrations\
**Tags:** free\
**Created:** [November 8, 2021, 10:53am UTC](https://community.hubspot.com/t/create-email-using-contact-from-crm-through-api/46618 "2021-11-08T10:53:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashuuas](https://avatars.discourse-cdn.com/v4/letter/a/ea666f/32.png) [@ashuuas](https://community.hubspot.com/u/ashuuas)\
**Post date:** [November 8, 2021, 10:53am UTC](https://community.hubspot.com/t/create-email-using-contact-from-crm-through-api/46618/1 "2021-11-08T10:53:01Z")

</div>

Hi,

I want to ganerate emails from contacts of my crm users/owners

i found the api end point but i think i will need more data to send like email id

Example POST URL:  
[https://api.hubapi.com/marketing-emails/v1/emails?hapikey=demo](https://api.hubapi.com/marketing-emails/v1/emails?hapikey=demo)

Example POST body:  
{  
“name”: “My first API marketing email!”,  
“subject”: “Sample subject line”  
}

---

<div class="post-metadata">

**Author:** ![TitiCuisset](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@TitiCuisset](https://community.hubspot.com/u/TitiCuisset)\
**Post date:** [November 9, 2021, 11:23am UTC](https://community.hubspot.com/t/create-email-using-contact-from-crm-through-api/46618/2 "2021-11-09T11:23:34Z")

</div>

Hi @ashuuas

Thank you for reaching out.

I want to tag some of our experts on this - @himanshurauthan @miljkovicmisa do you have any thoughts for @ashuuas on this?

Thank you!

Best

Tiphaine

---

<div class="post-metadata">

**Author:** ![ashuuas](https://avatars.discourse-cdn.com/v4/letter/a/ea666f/32.png) [@ashuuas](https://community.hubspot.com/u/ashuuas)\
**Post date:** [November 10, 2021, 10:57am UTC](https://community.hubspot.com/t/create-email-using-contact-from-crm-through-api/46618/3 "2021-11-10T10:57:58Z")

</div>

Hi,

I want to ganerate emails from contacts of my crm users/owners

i found the api end point but i think i will need more data to send like email id

Example POST URL:  
[https://api.hubapi.com/marketing-emails/v1/emails?hapikey=demo](https://api.hubapi.com/marketing-emails/v1/emails?hapikey=demo)

Example POST body:  
{  
“name”: “My first API marketing email!”,  
“subject”: “Sample subject line”  
}

---

<div class="post-metadata">

**Author:** ![himanshurauthan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/himanshurauthan/32/53076_2.png) [@himanshurauthan](https://community.hubspot.com/u/himanshurauthan)\
**Post date:** [November 15, 2021, 9:04am UTC](https://community.hubspot.com/t/create-email-using-contact-from-crm-through-api/46618/4 "2021-11-15T09:04:22Z")

</div>

Hello [@TitiCuisset](https://community.hubspot.com/t5/user/viewprofilepage/user-id/89150) and @ashuuas,

The endpoint ([https://api.hubapi.com/marketing-emails/v1/emails?hapikey=demo](https://api.hubapi.com/marketing-emails/v1/emails?hapikey=demo)) you are using is correct for creating a marketing email, but if you want to send the same emails to some users then you can use this API ([https://legacydocs.hubspot.com/docs/methods/email/transactional\_email/single-send-overview](https://legacydocs.hubspot.com/docs/methods/email/transactional_email/single-send-overview)).

From here you can send emails to users, you just need to fetch the email’s internal ID from the response body of the email that you have just created and use that email in the sending API.

Best Regards,
