---
title: "Create message template"
method: POST
path: "/messaging/templates"
tags: ["Message Reply Templates"]
---

# Create message template

`POST /messaging/templates`

This endpoint lets you create a new message template.

⚠️ The content should be a valid __stringified JSON__ object. It has to include both the `"text"` key with the message content
and the pair `"_version": "0.1"`.

## Request body

- MessageTemplateCreateRequest
  - `title` string, required — The title of the template
  - `icon` string — The icon linked to the template
  - `content` string, required — The template content as a __stringified JSON__ object with `"_version": "0.1"` inside

## Response `200`

The message template created

- MessageReplyTemplate
  - `id` string
  - `title` string — The title of the message template.
  - `content` 'client_full_name' | 'client_first_name' | 'business_name' | 'my_first_name' | 'rb_link' | 'address' | 'website_url' | 'phone_number' — The content of the message template should be a __stringified JSON__ object. This includes both the message content (`"text"`) and the pair `"_version": "0.1"`. The `"text"` can contain placeholders (values from the enum above within double curly braces `{{}}`) that will be replaced with the actual values when the message is sent.
  - `icon` string, nullable — The icon associated with the message template.
  - `org_id` integer — The organization ID that the message template belongs to.
  - `created_at` string, date-time — The date and time when the message template was created, in ISO 8601 format.
  - `updated_at` string, date-time, nullable — The date and time when the message template was last updated, in ISO 8601 format.
  - `usage_count` integer — The number of times the message template has been used.

## Other responses

- `401` — You are not authenticated
- `403` — You are not allowed to perform this action

---

[API](https://skmtc.net/partoo/apis/partoo-rest-api.md) · [All operations](https://skmtc.net/partoo/apis/partoo-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/partoo/partoo-rest-api/revisions/3652d8b1a8b3/schema)
