---
title: "Create a new email template"
method: POST
path: "/api/v1/template"
tags: ["email_template"]
---

# Create a new email template

`POST /api/v1/template`

## Request body

- object
  - `name` string, required
  - `body` string, required

## Response `201`

Template created successfully

- object
  - `status` string
  - `status_code` integer
  - `message` string
  - `data` object
    - `id` string
    - `name` string
    - `body` string
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `401` — Unauthorized
- `422` — Validation failed

---

[API](https://skmtc.net/hngprojects/apis/kimiko-golang-swagger.md) · [All operations](https://skmtc.net/hngprojects/apis/kimiko-golang-swagger/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hngprojects/kimiko-golang-swagger/revisions/2d1d3ed96bb9/schema)
