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

# Create email template

`POST /public/v1/email-templates`

Creates an email template from a TipTap document. Requires a USER API key. Only Person and User variables are allowed.

## Request body

- object
  - `name` string, required
  - `description` string, nullable
  - `subject` string, required
  - `bodyDocument` object, nullable

## Response `201`

Template created

- object
  - `id` number, required
  - `accountId` number, required
  - `name` string, required
  - `description` string, nullable, required
  - `subject` string, required
  - `bodyDocument` object, nullable
  - `bodyHtml` string, required
  - `bodyText` string, required
  - `contentHash` string, required
  - `documentSchemaVersion` number, required
  - `rendererVersion` number, required
  - `status` 'ACTIVE' | 'ARCHIVED', required
  - `version` number, required
  - `archivedAt` string, nullable, required
  - `createdAt` string, nullable, required
  - `updatedAt` string, nullable, required
  - `createdBy` object, nullable
    - `id` number, required
    - `firstName` string, required
    - `lastName` string, required
    - `email` string, email, required
    - `avatar` string, nullable
  - `updatedBy` object, nullable
    - `id` number, required
    - `firstName` string, required
    - `lastName` string, required
    - `email` string, email, required
    - `avatar` string, nullable

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `404` — Email template not found
- `409` — Version conflict (TEMPLATE_VERSION_CONFLICT)

## Changes

- **2026-10-03** `666cd9efa9f3` — 1 info
  - endpoint added

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

---

[API](https://skmtc.dev/getfrontline/apis/public-api.md) · [All operations](https://skmtc.dev/getfrontline/apis/public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getfrontline/apis/public-api/revisions/666cd9efa9f3?raw)
