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

# Validate Template

`POST /v2/sms-templates/validate`

## 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/validate`
- Auth: HTTP bearer

Validate an SMS Template

Validate an sms template body for syntax and length.

## Request body

- ValidateTemplateRequest: Request body for validating a template.
  - `body` string, required

## Response `200`

Successful Response

- ValidateTemplateResponse: Response from template validation.
  - `valid` boolean, required
  - `errors` string[], required
  - `warnings` string[], required
  - `estimated_characters` integer, required
  - `estimated_segments` integer, required

## 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)
