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

# Create template

`POST /project/v1/templates`

Create a new project template.

## Query parameters

- `projectId` string, required

## Request body

- object
  - `name` string, required — Template name
  - `displayMode` 'email' | 'web' | 'document' — Template type/display mode

## Response `201`

Default Response

- object
  - `data` object
    - `id` string — Template ID
    - `name` string — Template name
    - `displayMode` 'email' | 'web' | 'document' — Template type/display mode
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `400` — Default Response
- `401` — Default Response
- `403` — Default Response
- `404` — Default Response

## Changes

- **2026-01-19** `42ce261f6dec` — 4 warning, 6 info
  - removed the request property `body`
  - removed the request property `subject`
  - removed the optional property `data/body` from the response with the `201` status
  - removed the optional property `data/subject` from the response with the `201` status
  - …6 more
- **2026-01-13** `343ccfa7da7d` — 1 breaking
  - added the new required `query` request parameter `projectId`
- **2025-12-09** `9c0284025bec` — 1 breaking, 1 info
  - api path removed without deprecation
  - endpoint added

[Change history](https://skmtc.dev/unlayer/apis/unlayer-api/changes/project/v1/templates/post.md)

---

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