---
title: "Criar template de e-mail"
method: POST
path: "/email/templates"
---

# Criar template de e-mail

`POST /email/templates`

Criar um novo template de email na conta do PipeRun.

## Request body

- object
  - `name` string, required — Nome do template de e-mail.
  - `subject` string, required — Assunto do template de e-mail.
  - `body` string, required — Corpo do e-mail.
  - `engine` integer, required — Engine de construção do template
  - `active` boolean, required — Template ativo ou inativo

## Response `201`

201

- object
  - `success` boolean
  - `message` string
  - `data` object
    - `id` integer
    - `account_id` integer
    - `user_id` integer
    - `name` string
    - `subject` string
    - `body` string
    - `created_at` string
    - `updated_at` string

## Other responses

- `404` — 404
- `422` — 422

---

[API](https://skmtc.net/pipe/apis/application-json.md) · [All operations](https://skmtc.net/pipe/apis/application-json/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pipe/application-json/versions/0a130198f0a3/schema)
