> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SmsTemplatePreview

> The SMS template rendered the way it would be sent, with sample data, an order, or a recent event's data.

**characterCount** `Int!` *required*

The effective billable character count of `text` in its encoding (GSM-7 escape characters count as 2; UTF-16 counts code units).

**encoding** `[SmsEncoding!](/docs/api-reference/v3/reference/marketing/sms-encoding)` *required*

The character encoding required for `text`.

**perSegmentLimit** `Int!` *required*

The character capacity of each segment at the current encoding and segment count.

**sampleData** `Boolean!` *required*

Whether the preview was filled with Redo's sample data instead of a real event or order.

**segments** `Int!` *required*

The number of SMS segments required to send `text`.

**text** `String!` *required*

The rendered SMS body, as a recipient's phone would receive it (including brand prefix, populated variables, shortened links, and opt-out suffix).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.