# Create New Marketing Email With API

**URL:** <https://community.hubspot.com/t/create-new-marketing-email-with-api/117569>\
**Category:** APIs & Integrations\
**Tags:** email\
**Created:** [October 2, 2024, 10:36pm UTC](https://community.hubspot.com/t/create-new-marketing-email-with-api/117569 "2024-10-02T22:36:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JCarlisle8](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@JCarlisle8](https://community.hubspot.com/u/JCarlisle8)\
**Post date:** [October 2, 2024, 10:36pm UTC](https://community.hubspot.com/t/create-new-marketing-email-with-api/117569/1 "2024-10-02T22:36:57Z")

</div>

Hello, I’d like to create an email using the API. Where do I locate the templatePath for my email template?

Thanks,

---

<div class="post-metadata">

**Author:** ![JMoats](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jmoats/32/74968_2.png) [@JMoats](https://community.hubspot.com/u/JMoats)\
**Post date:** [October 3, 2024, 1:48pm UTC](https://community.hubspot.com/t/create-new-marketing-email-with-api/117569/2 "2024-10-03T13:48:04Z")

</div>

Hey there! [You can use this endpoint](https://legacydocs.hubspot.com/docs/methods/templates/get_templates?_ga=2.81962833.618730911.1727720034-425744846.1727720034&_gl=1*u7rcpl*_gcl_au*MTc2NDkxNTYyMy4xNzI3NzIwMDM0*_ga*NDI1NzQ0ODQ2LjE3Mjc3MjAwMzQ.*_ga_LXTM6CQ0XK*MTcyNzk2MTM2NC42LjEuMTcyNzk2Mjk5NS41OS4wLjA.) to get all templates in your account. In your code, filter for only email templates so you’re not looking at irrelevant templates. Once you have the desired email, you can grab the template path for use in [the create marketing email endpoint.](https://developers.hubspot.com/docs/api/marketing/marketing-email)

Hope this helps!
