---
title: "Generate SMS messages"
method: POST
path: "/generate/sms"
tags: ["Generation"]
---

# Generate SMS messages

`POST /generate/sms`

Generates draft SMS marketing message variants with per-message encoding and segment counts. Messages exclude opt-out footers and brand prefixes - Sequenzy adds both automatically at send time.

## Request body

- object
  - `prompt` string, required — Description of the SMS to generate.
  - `count` number — Number of variants to generate. Defaults to 3.

## Response `200`

SMS messages generated successfully

- object
  - `success` boolean
  - `prompt` string
  - `messages` object[]
    - `text` string
    - `encoding` 'gsm7' | 'ucs2'
    - `segments` number
    - `characterCount` number

## Other responses

- `400` — Validation error
- `401` — Unauthorized
- `403` — No company selected
- `500` — Generation failed

---

[API](https://skmtc.net/sequenzy/apis/sequenzy-api.md) · [All operations](https://skmtc.net/sequenzy/apis/sequenzy-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sequenzy/sequenzy-api/versions/af1cf9620482/schema)
