Title: Using Elementor Templates with WP Rest API
Last modified: April 22, 2022

---

# Using Elementor Templates with WP Rest API

 *  [mitch8910](https://wordpress.org/support/users/mitch8910/)
 * (@mitch8910)
 * [4 years ago](https://wordpress.org/support/topic/using-elementor-templates-with-wp-rest-api/)
 * I am using an API to create new WP pages. I have an Elementor template which 
   is saved as a “Elementor Canvas”. I want to be able to create a new Elementor
   Canvas page with this template through the API.
 * As far as I understand I can’t directly create a page using a Elementor Template,
   so I am trying to create a Elementor Canvas and add the Elementor Template Shortcode
   as the “post content”.
 * The only thing that isn’t working is the Canvas. The page is being created as
   a default WP page, not an Elementor Canvas, so the template isn’t formatting 
   correctly.
 * Is there a way to fix what I’m doing, or a better way to create a new page from
   an Elementor Template using Rest API?
 *     ```
       {
       "action": "create_post",
       "post_author": "<authorID>",
       "post_content": "<post content>", /* using: [elementor-template id="3542"] */
       "post_title": "Leave us a Review",
       "post_status": "publish",
       "post_type": "page",
       "comment_status": "closed",
       "post_name": "<post-name>",
       "page_template": "elementor_canvas"
       }
       ```
   
 * I’m not sure if I’m using the wrong names or something? For example I’ve tried:
 * `"template": "elementor_canvas"`
 * As well as
 * `"page_template": "elementor_canvas"`

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Elementor Team](https://wordpress.org/support/users/lianakap/)
 * (@lianakap)
 * [4 years ago](https://wordpress.org/support/topic/using-elementor-templates-with-wp-rest-api/#post-15585988)
 * Hi,
 * Could you please send me the URL of your site?
 *  Thread Starter [mitch8910](https://wordpress.org/support/users/mitch8910/)
 * (@mitch8910)
 * [4 years ago](https://wordpress.org/support/topic/using-elementor-templates-with-wp-rest-api/#post-15594405)
 * [@lianakap](https://wordpress.org/support/users/lianakap/) Hi, Yes, it is swarmreviews.
   com.
 *  [Elementor Team](https://wordpress.org/support/users/lianakap/)
 * (@lianakap)
 * [4 years ago](https://wordpress.org/support/topic/using-elementor-templates-with-wp-rest-api/#post-15594524)
 * .
 * .
 * .

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Using Elementor Templates with WP Rest API’ is closed to new replies.

 * ![](https://ps.w.org/elementor/assets/icon-256x256.gif?rev=3444228)
 * [Elementor Website Builder - more than just a page builder](https://wordpress.org/plugins/elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/elementor/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [rest](https://wordpress.org/support/topic-tag/rest/)
 * [template](https://wordpress.org/support/topic-tag/template/)

 * 3 replies
 * 2 participants
 * Last reply from: [Elementor Team](https://wordpress.org/support/users/lianakap/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/using-elementor-templates-with-wp-rest-api/#post-15594524)
 * Status: not a support question