---
title: "Create New Template"
method: POST
path: "/templates"
tags: ["Template APIs"]
---

# Create New Template

`POST /templates`

This endpoint allows you to create a new email template that can later be used to send emails. Only the first HTML content block is stored.

## Request body

- object
  - `name` string, required — Unique name of the template. Cannot be empty.
  - `content` object[], required — Array of content blocks. Only the first block of type "html" will be stored.
    - `type` 'html', required — Content type. Only "html" is supported.
    - `value` string, required — URL-encoded HTML content of the template. Cannot be empty. Max size: 10MB.

## Response `201`

Template has been created successfully.

- object
  - `id` string, required
  - `name` string, required
  - `added` string, required
  - `updated_at` string, required

## Other responses

- `400` — Bad Request. Validation or input errors occurred.

---

[API](https://skmtc.dev/netcorecloud/apis/email-api-v6.md) · [All operations](https://skmtc.dev/netcorecloud/apis/email-api-v6/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/netcorecloud/email-api-v6/revisions/73f83bc2eff8/schema)
