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

# Create Email Template

`POST /v1/email-templates`

## Request

- Base URL: `https://api.elaan.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.elaan.io/v1/email-templates`
- Auth: none declared

## Headers

- `authorization` string, nullable

## Request body

- CreateEmailTemplateRequest
  - `language` string, nullable
  - `notification_type_key` string, required
  - `branding_key` string, nullable
  - `subject` string, required
  - `body` string, required

## Response `201`

Successful Response

- EmailTemplateResponse
  - `id` string, required
  - `notification_type_key` string, required
  - `branding_key` string, nullable, required
  - `language` string, nullable, required
  - `variables` string[], required
  - `subject` string, required
  - `body` string, required

## Other responses

- `409`: A template for this notification type + brand already exists
- `422`: The keys are malformed, the notification type isn't live, the branding doesn't exist, or the content is empty

---

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