---
title: "Preview Sms Notification Template"
method: POST
path: "/settings/sms-notification-templates/preview"
tags: ["Settings"]
---

# Preview Sms Notification Template

`POST /settings/sms-notification-templates/preview`

## Request

- Base URL: `https://api.openintake.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openintake.ai/settings/sms-notification-templates/preview`
- Auth: none declared
- TypeScript: <https://skmtc.dev/openintake/apis/openintake-api/docs/settings/sms-notification-templates/preview/post.ts> (a function with typed inputs; its response is checked against the schema)

Render a template against one of the firm's recent calls or chats that it matches, or sample details.

## Request body

- PreviewSmsNotificationTemplateRequest
  - `body` string, required
  - `conditions` TemplateCondition[]
    - `field` string, required
    - `operator` 'equals' | 'not_equals' | 'contains' | 'is_filled' | 'is_empty', required
    - `value` string, nullable
  - `call_id` string, uuid, nullable

## Response `200`

Successful Response

- PreviewSmsNotificationTemplateResponse
  - `rendered_message` string, required
  - `character_count` integer, required
  - `sms_segment_count` integer, required
  - `shortened` boolean, required
  - `source` 'call' | 'chat' | 'sample', required
  - `call_id` string, uuid, nullable
  - `conversation_id` string, uuid, nullable

## Other responses

- `422`: Validation Error

## Changes

- **2026-11-05** `6d5cfe57286b`: 1 warning, 1 info
  - added the new `chat` enum value to the `source` response property for the response status `200`
  - added the optional property `conversation_id` to the response with the `200` status
- **2026-11-03** `56ef656004f6`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openintake/apis/openintake-api/changes/settings/sms-notification-templates/preview/post.md)

---

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