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

## Changes

- **2026-08-02** `36f92fc0caa2` — 4 breaking
  - the response property `success` became optional for the status `400`
  - the response property `success` became optional for the status `401`
  - the response property `success` became optional for the status `403`
  - the response property `success` became optional for the status `500`
- **2026-07-10** `1b0d5fa83cd8` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/sequenzy/apis/sequenzy-api/changes/generate/sms/post.md)

---

[API](https://skmtc.dev/sequenzy/apis/sequenzy-api.md) · [All operations](https://skmtc.dev/sequenzy/apis/sequenzy-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sequenzy/sequenzy-api/revisions/c6ff100192cf/schema)
