# How to create email templates programmatically with v2 management API

**URL:** <https://community.auth0.com/t/how-to-create-email-templates-programmatically-with-v2-management-api/6559>\
**Category:** Get Help\
**Tags:** email-template, management-api\
**Created:** [May 10, 2017, 7:32am UTC](https://community.auth0.com/t/how-to-create-email-templates-programmatically-with-v2-management-api/6559 "2017-05-10T07:32:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chance.zibolski](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/chance.zibolski/32/7156_2.png) [@chance.zibolski](https://community.auth0.com/u/chance.zibolski)\
**Post date:** [May 10, 2017, 7:32am UTC](https://community.auth0.com/t/how-to-create-email-templates-programmatically-with-v2-management-api/6559/1 "2017-05-10T07:32:40Z")

</div>

In the deprecated, v1 management API, there was an `/api/emails` endpoint you could GET/POST/PUT to manage the email templates for a given email type. I don’t see anything equivalent for v2.

Is there a undocumented v2 API for this? Or will I have to use the v1 API if I want to automate the email templates?

---

<div class="post-metadata">

**Author:** ![prashantT](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/prashantt/32/6002_2.png) [@prashantT](https://community.auth0.com/u/prashantT)\
**Post date:** [May 10, 2017, 9:10am UTC](https://community.auth0.com/t/how-to-create-email-templates-programmatically-with-v2-management-api/6559/2 "2017-05-10T09:10:53Z")

</div>

Management API v2 currently does not support updating email templates - you can continue to use v1 for this. More information to achieve this is outlined here:

> <https://gist.github.com/sandrinodimattia/f627f6c718865c36d8f8d19525432f4a>

---

<div class="post-metadata">

**Author:** ![adabir](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@adabir](https://community.auth0.com/u/adabir)\
**Post date:** [September 7, 2017, 5:29am UTC](https://community.auth0.com/t/how-to-create-email-templates-programmatically-with-v2-management-api/6559/3 "2017-09-07T05:29:43Z")

</div>

Hi Prashant,  
My team was using the work-around you mentioned in your post, which is to use the deprecated V1 management API for managing email templates. We have two Auth0 accounts (Dev and Prod). Things worked fine for our Dev account, but failed on our Prod account. We realized that the issue was due to Auth0 NOT allowing accounts created after a certain date to access V1 (our Prod was created after this date). We have gone back to manually configuring these, but I was wondering if you may have another workaround in mind? Also any update on when V2 might support this?

Thanks

---

<div class="post-metadata">

**Author:** ![Mark](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mark/32/5822_2.png) [@Mark](https://community.auth0.com/u/Mark)\
**Post date:** [February 15, 2018, 12:03am UTC](https://community.auth0.com/t/how-to-create-email-templates-programmatically-with-v2-management-api/6559/4 "2018-02-15T00:03:51Z")

</div>

Hi Prashant, When will email template support appear in the v2 API? I cannot use the v1 API in my tenants and I do not like the idea of actually using the global client id/secret just for updating the email template.

Cheers,

Mark

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:53am UTC](https://community.auth0.com/t/how-to-create-email-templates-programmatically-with-v2-management-api/6559/5 "2018-03-02T05:53:49Z")

</div>


