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

# Create an email template

`POST /v1/templates`

## Request

- Base URL: `https://api.deadsimple.email`
- URL: `https://api.deadsimple.email/v1/templates`
- Auth: HTTP bearer

Reusable templates with {{variable}} substitution referenced by template_id on send.

## Request body

- object
  - `name` string, required
  - `subject` string
  - `text_body` string
  - `html_body` string

## Response `201`

Template created

---

[API](https://skmtc.dev/deadsimple/apis/dead-simple-email-api.md) · [All operations](https://skmtc.dev/deadsimple/apis/dead-simple-email-api/llms.txt) · [OpenAPI document](https://skmtc.dev/deadsimple/apis/dead-simple-email-api/revisions/c697881be131?raw)
