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

# Create Template

`POST /template`

Create a new template

## Query parameters

- `select` string

## Request body

- object
  - `id` string, uuid — Template ID
  - `created_at` string, timestamp with time zone — Template creation date
  - `updated_at` string, timestamp with time zone — Latest update
  - `organisation_id` string, uuid, nullable — Organisation ID
  - `name` string, text — Name of template
  - `subject` string, text, nullable — Subject of template
  - `content` object, nullable — Content of template
  - `text` string, text — Text content for the template.
  - `request_approvals` boolean, nullable — Request approvals of template
  - `language` string, character varying — Language of template
  - `key` string, text — Template key
  - `footer` string, text, nullable — Footer of template
  - `type` 'review_request' | 'auto_responder' | 'opt_in_request' | 'transactional' | 'marketing' | 'opt_out_confirmation' | 'double_opt_in_confirmation', public.template_type — Type of template
  - `buttons` object, nullable — Buttons of template
  - `header_media_filename` string, text, nullable — Header media filename of template
  - `header_media` string, text — URL to the header media for the template. Can be https:// or media_library://
  - `html` string, text — HTML content for the template.

## Response `200`

The updated Template object

- Template
  - `id` string, uuid — Template ID
  - `created_at` string, timestamp with time zone — Template creation date
  - `updated_at` string, timestamp with time zone — Latest update
  - `organisation_id` string, uuid, nullable — Organisation ID
  - `name` string, text — Name of template
  - `subject` string, text, nullable — Subject of template
  - `content` object, nullable — Content of template
  - `text` string, text, nullable — Text representation of the template content
  - `request_approvals` boolean, nullable — Request approvals of template
  - `language` string, character varying — Language of template
  - `key` string, text — Template key
  - `footer` string, text, nullable — Footer of template
  - `type` 'review_request' | 'auto_responder' | 'opt_in_request' | 'transactional' | 'marketing' | 'opt_out_confirmation' | 'double_opt_in_confirmation', public.template_type — Type of template
  - `buttons` object, nullable — Buttons of template
  - `header_media_filename` string, text, nullable — Header media filename of template

## Other responses

- `201` — The Template was created
- `204` — No Content

---

[API](https://skmtc.dev/getmateo/apis/mateo-api.md) · [All operations](https://skmtc.dev/getmateo/apis/mateo-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getmateo/mateo-api/revisions/22a9b3b009d1/schema)
