# I am using API to get email\_templates, only two templates are working for me out of 9

**URL:** <https://community.auth0.com/t/i-am-using-api-to-get-email-templates-only-two-templates-are-working-for-me-out-of-9/136709>\
**Category:** Get Help\
**Tags:** emails, management-api\
**Created:** [June 20, 2024, 7:38am UTC](https://community.auth0.com/t/i-am-using-api-to-get-email-templates-only-two-templates-are-working-for-me-out-of-9/136709 "2024-06-20T07:38:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mansi.srivastava](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mansi.srivastava/32/57793_2.png) [@mansi.srivastava](https://community.auth0.com/u/mansi.srivastava)\
**Post date:** [June 20, 2024, 7:38am UTC](https://community.auth0.com/t/i-am-using-api-to-get-email-templates-only-two-templates-are-working-for-me-out-of-9/136709/1 "2024-06-20T07:38:55Z")

</div>

Ready to post? 🔍 First, try searching for your answer.  
GET https://{YOUR\_DOMAIN}/api/v2/email-templates  
I want to customize email templates, but I am unable to fetch results for any template other than welcome\_email and verify\_email  
Getting error inexistent\_email\_template for all others.  
Also, I am unable to see status toggle to enable template for few templates.

 ![notworking](https://global.discourse-cdn.com/auth0/original/3X/b/7/b7e0d4f5936c590601a2531858061d3e55a1c683.jpeg)  
 ![working](https://global.discourse-cdn.com/auth0/original/3X/6/3/63f9c26fa1ce7d18d5b3989888b43cc971647b30.jpeg)

---

<div class="post-metadata">

**Author:** ![marcelina.barycka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcelina.barycka/32/56162_2.png) [@marcelina.barycka](https://community.auth0.com/u/marcelina.barycka)\
**Post date:** [June 20, 2024, 8:44am UTC](https://community.auth0.com/t/i-am-using-api-to-get-email-templates-only-two-templates-are-working-for-me-out-of-9/136709/2 "2024-06-20T08:44:26Z")

</div>

Hi there @mansi.srivastava ,

At first, I was confused as well.

This endpoint `GET https://{YOUR_DOMAIN}/API/v2/name-templates` will return _only templates that have been already modified_.

You should be able to find most of the emails code in your Auth0 tenant → Branding → email templates. One exception is the passwordless email _Passwordless Email OTP_, which is available under Connections → Passwordles → Email. [Ref](https://community.auth0.com/t/update-the-email-template-of-passwordless-email-otp-using-management-api/136347).

Please let me know if you encounter any roadblocks while modifying your templates.

Another thing to note is that when you test your new templates, you must first set your Custom email provider. But as all of them are just HTML files, you can test the appearance in your browser as well 🙂

---

<div class="post-metadata">

**Author:** ![mansi.srivastava](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mansi.srivastava/32/57793_2.png) [@mansi.srivastava](https://community.auth0.com/u/mansi.srivastava)\
**Post date:** [June 20, 2024, 11:20pm UTC](https://community.auth0.com/t/i-am-using-api-to-get-email-templates-only-two-templates-are-working-for-me-out-of-9/136709/4 "2024-06-20T23:20:02Z")

</div>

Ahh! Thanks @marcelina.barycka  
It worked. After modifying the default template and saving, API started to give the response 😁

Although I did not modify the welcome\_email and verify\_email templates, and the API provided a response. Also, Template enable toggle is visible for only these two template types 🤔

 ![image](https://global.discourse-cdn.com/auth0/original/3X/a/7/a7e68c1294cf179d974b4cab150ba3979b260822.png)

---

<div class="post-metadata">

**Author:** ![marcelina.barycka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcelina.barycka/32/56162_2.png) [@marcelina.barycka](https://community.auth0.com/u/marcelina.barycka)\
**Post date:** [June 21, 2024, 8:21am UTC](https://community.auth0.com/t/i-am-using-api-to-get-email-templates-only-two-templates-are-working-for-me-out-of-9/136709/5 "2024-06-21T08:21:18Z")

</div>

Hi there @mansi.srivastava ,

> [@mansi.srivastava](#):
>
> After modifying the default template and saving, API started to give the response

To be sure that what you updated is also enabled, please look for a property `enabled: true/false` in the API response.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/7/0/708b93858ef213fb9d76e3e08bee837bedb9f075.png)

The same thing applies when you update/create a template via the API—please make sure to set the flag `enabled: true` so that the desired template is enabled in your tenant.

Is there anything else that’s confusing?

---

<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:** [July 5, 2024, 8:22am UTC](https://community.auth0.com/t/i-am-using-api-to-get-email-templates-only-two-templates-are-working-for-me-out-of-9/136709/6 "2024-07-05T08:22:17Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
