# Clone endpoint for templates

**URL:** <https://community.hubspot.com/t/clone-endpoint-for-templates/117706>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [October 4, 2024, 6:10pm UTC](https://community.hubspot.com/t/clone-endpoint-for-templates/117706 "2024-10-04T18:10:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nickgi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/nickgi/32/42056_2.png) [@nickgi](https://community.hubspot.com/u/nickgi)\
**Post date:** [October 4, 2024, 6:10pm UTC](https://community.hubspot.com/t/clone-endpoint-for-templates/117706/1 "2024-10-04T18:10:17Z")

</div>

We are needing to duplicate a whole bunch of Email Templates into various languages (11 langs x 15 templates = 165 new templates). I noticed there’s no clone endpoint (like the one on email marketing) for templates in the api. Does anyone have a suggestion so I don’t need to create 165 templates via the UI?

---

<div class="post-metadata">

**Author:** ![Teun](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/teun/32/28739_2.png) [@Teun](https://community.hubspot.com/u/Teun)\
**Post date:** [October 4, 2024, 7:50pm UTC](https://community.hubspot.com/t/clone-endpoint-for-templates/117706/2 "2024-10-04T19:50:35Z")

</div>

Hi @nickgi ,

I might have misunderstood your question, but there is an option to clone a marketing e-mail:

 ![Schermafbeelding 2024-10-04 om 21.45.59.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/2X/5/519579dddb57077367b45591932e228f2d5cbb55.jpeg)

Or are you talking about the [Saved marketing email templates](https://knowledge.hubspot.com/marketing-email/manage-and-edit-your-saved-marketing-email-templates)?

I don’t think there is an API for that, but you could rebuild your saved template as a [coded email template](https://developers.hubspot.com/docs/cms/guides/specify-drag-and-drop-areas-in-a-custom-email-template) with drag-and-drop functionality and clone that programmatically through the [templates API](https://developers.hubspot.com/docs/api/cms/templates) by making a GET request to the original and simply creating new ones through a POST request using the response of the GET request (might need some small changes).

---

<div class="post-metadata">

**Author:** ![nickgi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/nickgi/32/42056_2.png) [@nickgi](https://community.hubspot.com/u/nickgi)\
**Post date:** [October 4, 2024, 7:54pm UTC](https://community.hubspot.com/t/clone-endpoint-for-templates/117706/3 "2024-10-04T19:54:32Z")

</div>

Thanks for the reply. I specifically looking to clone templates under Library → Templates. I was aware of the email marketing clone endpoint and it worked great. But now I need to clone the templates and couldn’t find an endpoint.

---

<div class="post-metadata">

**Author:** ![evaldas](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/evaldas/32/69160_2.png) [@evaldas](https://community.hubspot.com/u/evaldas)\
**Post date:** [October 4, 2024, 8:08pm UTC](https://community.hubspot.com/t/clone-endpoint-for-templates/117706/4 "2024-10-04T20:08:26Z")

</div>

Hi @nickgi,

Assuming you want to clone the drag-and-drop email templates, you can utilize the [Content API for templates](https://developers.hubspot.com/beta-docs/reference/api/cms/templates). There is no end point for cloning but you can retrieve template using the GET **/content/api/v2/templates/{template-id}** endpoint and then create your modified versions by using the POST **/content/api/v2/templates**.

You can get the id of your drag-and-drop template in the URL when editing that template.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![Teun](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/teun/32/28739_2.png) [@Teun](https://community.hubspot.com/u/Teun)\
**Post date:** [October 4, 2024, 8:18pm UTC](https://community.hubspot.com/t/clone-endpoint-for-templates/117706/5 "2024-10-04T20:18:23Z")

</div>

Are we saying the same thing or did I miss something and can this be used to clone the templates under ‘Library \> Templates’?

---

<div class="post-metadata">

**Author:** ![evaldas](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/evaldas/32/69160_2.png) [@evaldas](https://community.hubspot.com/u/evaldas)\
**Post date:** [October 4, 2024, 8:28pm UTC](https://community.hubspot.com/t/clone-endpoint-for-templates/117706/6 "2024-10-04T20:28:13Z")

</div>

@Teun looks like you posted a reply as I was typing mine 😁 We are saying almost the same thing - I think the only difference from your reply is that you actually may not need to rebuild it as a coded email template. The drag and drop templates technically get saved as coded email templates in the “@hubsopt” folder but they aren’t accessible in the design manager. However, you can get them via the API if you know the ID of that template.

---

<div class="post-metadata">

**Author:** ![Teun](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/teun/32/28739_2.png) [@Teun](https://community.hubspot.com/u/Teun)\
**Post date:** [October 4, 2024, 8:32pm UTC](https://community.hubspot.com/t/clone-endpoint-for-templates/117706/7 "2024-10-04T20:32:48Z")

</div>

Oh wow that is amazing! Great to know.
