---
title: "Create Template"
method: POST
path: "/v2/sms-templates"
tags: ["sms-templates"]
---

# Create Template

`POST /v2/sms-templates`

## Request

- Base URL: `https://api.stuut.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.stuut.ai/v2/sms-templates`
- Auth: HTTP bearer

Create an SMS Template

## Request body

- CreateSMSTemplateRequest: Request body for creating an SMS template.
  - `name` string, required: The name of the SMS template.
  - `body` string, required: The message template body with Jinja2 variables. Plain text only.
  - `description` string, nullable: Description of when/how to use this template.
  - `is_default` boolean: Whether this is the default SMS template.

## Response `200`

Successful Response

- SMSTemplateSchema: SMS template summary for list views.
  - `created_at` string, date-time, required
  - `modified_at` string, date-time, nullable, required
  - `id` string, required
  - `body` string, required: The message template body with Jinja2 variables. Plain text only.
  - `character_count` integer, required: Approximate character count (before variable substitution)
  - `description` string, nullable, required: Description of when/how to use this template.
  - `estimated_segment_count` integer, required: Estimated SMS segment count. 160 characters per segment for GSM-7 encoding. Note: Actual count may vary after variable substitution.
  - `is_default` boolean, required: Whether this is the default SMS template.
  - `name` string, required: The name of the SMS template.
  - `object` string, required: String representing the object's type. Objects of the same type share the same value.

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/stuut/apis/stuut-api.md) - [All operations](https://skmtc.dev/stuut/apis/stuut-api/llms.txt) - [OpenAPI document](https://skmtc.dev/stuut/apis/stuut-api/revisions/ff0ad16a55ff?raw)
