---
title: "Create template"
method: POST
path: "/templates"
tags: ["templates"]
---

# Create template

`POST /templates`

Creates a new template stored at PDFShift.

## Request body

- TemplateCreateForm
  - `slug` string, required — Unique identifier for the template.
  - `name` string, required — Name of the template.
  - `content` string, required — HTML content of the template.

## Response `200`

Template created

- Template
  - `success` boolean
  - `template` object
    - `slug` string
    - `created` integer
    - `name` string

## Other responses

- `400` — Bad request.
- `401` — Unauthorized. Invalid auth key.
- `429` — Too Many Requests. You have been rate limited.
- `500` — Internal Server Error.

---

[API](https://skmtc.dev/pdfshift/apis/pdfshift-api-documentation.md) · [All operations](https://skmtc.dev/pdfshift/apis/pdfshift-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pdfshift/pdfshift-api-documentation/revisions/0b8cbae61b89/schema)
