---
title: "Create Template"
method: POST
path: "/public/v1/templates"
tags: ["Templates"]
---

# Create Template

`POST /public/v1/templates`

This operation allows you to create a new template by providing the necessary template details.

## Query parameters

- `fields` string[]

## Request body

- CreateTemplateFromUrlRequest
  - `url` string — Secure (HTTPS) and publicly accessible URL to the PDF document.
  - `name` string — The name of the template.
  - `folder_uuid` string — The ID of the folder where the created template should be stored.
  - `owner` object — You can set an owner of a template as an `email` or `membership_id`.
    - `membership_id` string
    - `email` string, email
  - `metadata` object, nullable — You can pass arbitrary data in the key-value format to associate custom information with a template. This information is returned in any API requests for the template details by id.
  - `tokens` object[] — Create or initialize multiple CUSTOM variables with their values using tokens/values list. Template's predefined variables are read-only. Any attempts to do so will be ignored.
    - `name` string, required
    - `value` string, required

## Response `201`

OK

- TemplateCreateResponse
  - `id` string
  - `name` string
  - `date_created` string, date-time
  - `date_modified` string, date-time
  - `version` string
  - `content_date_modified` string, date-time

## Other responses

- `400` — Bad Request
- `401` — Authentication error
- `429` — Too Many Requests

---

[API](https://skmtc.net/pandadoc/apis/pandadoc-public-api.md) · [All operations](https://skmtc.net/pandadoc/apis/pandadoc-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pandadoc/pandadoc-public-api/versions/0c2b70be3fb0/schema)
