---
title: "Create Wp Template"
method: POST
path: "/wordpress/sites/{site_id}/templates"
tags: ["wordpress"]
---

# Create Wp Template

`POST /wordpress/sites/{site_id}/templates`

## Request

- Base URL: `https://api.xeorank.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.xeorank.com/wordpress/sites/{site_id}/templates`
- Auth: API key in header `X-Agent-Key`

Create an Elementor Theme Builder template (header/footer/single/archive/…)
as a DRAFT. Conditions optional here; publishing via conditions endpoint.

## Path parameters

- `site_id` string, uuid, required

## Query parameters

- `email` string, nullable

## Request body

- CreateTemplateBody
  - `title` string, required
  - `template_type` string, required
  - `sections` unknown[], nullable
    - unknown
  - `elementor_data` string, nullable
  - `conditions` string[], nullable
  - `publish` boolean
  - `page_settings` object, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/xeorank/apis/seo-intelligence-engine.md) · [All operations](https://skmtc.dev/xeorank/apis/seo-intelligence-engine/llms.txt) · [OpenAPI document](https://skmtc.dev/xeorank/apis/seo-intelligence-engine/revisions/449a3fd73454?raw)
