Skip to Content
AI Copy Assistant

Polish, optimize to 160 characters & localize SMS copy

View Markdown (.md)
POST
/api/v1/public/ai-copy/polish

Uses AI to trim marketing or transactional copy down to fit within a single 160-character GSM-7 segment, optimize tone, or localize into African languages.

Authorization

headerX-Api-Key<token>

SMS Pro API Key (sk_live_... or sk_test_...)

Request Body

application/json
  1. body
prompt*string
mode?string
Default"FIT_TO_160"
Value in"FIT_TO_160""URGENT_MARKETING""PROFESSIONAL_FORMAL""WARM_CELEBRATORY""LOCALIZE_PIDGIN""LOCALIZE_FRENCH""LOCALIZE_TWI""LOCALIZE_YORUBA""GSM7_CLEANSE"

Response Body

Polished text with character count and savings

application/json
  1. response
status?string
data?
Example Request
curl -X POST 'https://api.smspro.com/api/v1/public/ai-copy/polish' \  -H 'Content-Type: application/json' \  -d '{  "prompt": "string"}'
Example Response
{  "status": "string",  "data": {    "polishedText": "string",    "originalLength": 0,    "polishedLength": 0,    "segments": 0  }}