v93

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01218121759.7 KB
Generation

Generate SMS messages

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.

post/generate/sms

Request body

promptstring required

Description of the SMS to generate.

countnumber

Number of variants to generate. Defaults to 3.

Example request

{
  "prompt": "Cart reminder with a free-shipping hook",
  "count": 3
}

Response

SMS messages generated successfully

successboolean
promptstring

Example response

{
  "success": true,
  "prompt": "Cart reminder with a free-shipping hook",
  "messages": [
    {
      "text": "Hey {{FIRST_NAME}}, your cart is waiting! Complete your order today and shipping is on us.",
      "encoding": "gsm7",
      "segments": 1,
      "characterCount": 94
    }
  ]
}