---
title: "Create a template"
method: POST
path: "/template"
tags: ["Templates"]
---

# Create a template

`POST /template`

Uploads HTML to create a reusable template.

## Request body

- object
  - `name` string
  - `body` string, required — HTML encoded in base64
  - `lang` 'en' | 'ru' | 'ua' | 'tr' | 'es' | 'pt'

## Response `200`

Template created

- object
  - `result` boolean
  - `real_id` integer

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `422` — Validation error

---

[API](https://skmtc.net/sendpulse/apis/sendpulse-bulk-email-api.md) · [All operations](https://skmtc.net/sendpulse/apis/sendpulse-bulk-email-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sendpulse/sendpulse-bulk-email-api/revisions/cd38f8c6a425/schema)
