# Add template to page created with POST request thru Write API

**URL:** <https://forum.builder.io/t/add-template-to-page-created-with-post-request-thru-write-api/5178>\
**Category:** Technical Questions\
**Created:** [March 15, 2024, 7:49pm UTC](https://forum.builder.io/t/add-template-to-page-created-with-post-request-thru-write-api/5178 "2024-03-15T19:49:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jacobHappied](https://avatars.discourse-cdn.com/v4/letter/j/cab0a1/32.png) [@jacobHappied](https://forum.builder.io/u/jacobHappied)\
**Post date:** [March 15, 2024, 7:49pm UTC](https://forum.builder.io/t/add-template-to-page-created-with-post-request-thru-write-api/5178/1 "2024-03-15T19:49:38Z")

</div>

**Builder content link**

> **[Builder.io: Visual Development Platform](https://builder.io/content/83745c1b920e49ae9229cecd41e2cd9a)**
>
> Drag and drop with your components, right within your existing site or app. Build and optimize digital experiences for any tech stack, visually..

**Builder public api key**  
9f61122ec08b43a49757750e75578a5b

**What are you trying to accomplish**  
We’re using the Write API to create a new page each time we create a certain object in our database. We have a template set up that gives us the basic layout/functionality for these pages, so that our employees only have to edit a few things before pushing the new page to our production app. I know we can set up a new page or model with the Write API, but is it possible to add a template at the same time? Building out the template programmatically each time would get pretty cumbersome.

**Code stack you are integrating Builder with**  
React, Ruby on Rails

---

<div class="post-metadata">

**Author:** ![manish-sharma](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@manish-sharma](https://forum.builder.io/u/manish-sharma)\
**Post date:** [March 18, 2024, 4:22pm UTC](https://forum.builder.io/t/add-template-to-page-created-with-post-request-thru-write-api/5178/2 "2024-03-18T16:22:53Z")

</div>

Hello @jacobHappied,

Welcome to the [builder.io](http://builder.io) forum post.

Would you be able to share the template example or perhaps the JSON structure for the template that you would like to post using write API?

---

<div class="post-metadata">

**Author:** ![jacobHappied](https://avatars.discourse-cdn.com/v4/letter/j/cab0a1/32.png) [@jacobHappied](https://forum.builder.io/u/jacobHappied)\
**Post date:** [March 18, 2024, 8:26pm UTC](https://forum.builder.io/t/add-template-to-page-created-with-post-request-thru-write-api/5178/3 "2024-03-18T20:26:52Z")

</div>

Sure, this is a link to a page that is using the template [Builder.io: Visual Development Platform](https://builder.io/content/0869169d6d0748da93a7749b3d320d1a/edit?activeDesignerTab=0&selectedBlock=builder-9296de6b3c8a4526b3ff374d2121b612)

---

<div class="post-metadata">

**Author:** ![jacobHappied](https://avatars.discourse-cdn.com/v4/letter/j/cab0a1/32.png) [@jacobHappied](https://forum.builder.io/u/jacobHappied)\
**Post date:** [March 18, 2024, 9:30pm UTC](https://forum.builder.io/t/add-template-to-page-created-with-post-request-thru-write-api/5178/4 "2024-03-18T21:30:34Z")

</div>

Where would I find the JSON structure for the template? I can send that as well if it would help. My hope was that I would just be able to reference a template ID in the API call that would add it to the page, but I didn’t see any way to do that in the docs.

---

<div class="post-metadata">

**Author:** ![jacobHappied](https://avatars.discourse-cdn.com/v4/letter/j/cab0a1/32.png) [@jacobHappied](https://forum.builder.io/u/jacobHappied)\
**Post date:** [March 19, 2024, 7:26pm UTC](https://forum.builder.io/t/add-template-to-page-created-with-post-request-thru-write-api/5178/5 "2024-03-19T19:26:09Z")

</div>

Hi Manish,

Does the link I provided in an earlier comment give you what you need or is there something else I should provide? I don’t know that I can directly link to the template, I didn’t see any way to copy a link for it in the editor.
