Skip to content

Send a message ​

POST /v1/messages

Sends one SMS. The Gateway splits long text itself (over 160 GSM 7-bit or 70 Thai characters).

Request ​

All signature headers are required, see Signature.

FieldTypeRequiredDescription
clientRefstring✓your reference, unique per client; prevents double sends
routestring✓a route the client may use, e.g. TRUE or SANDBOX
fromstring✓an approved sender name
tostring✓destination in international format, e.g. 66812345678
textstring✓message text
batchRefstringbatch id, e.g. a campaign id, for per-batch totals
json
{
  "clientRef": "smsup-0001",
  "route": "SANDBOX",
  "from": "SMSUPPLUS",
  "to": "66812345678",
  "text": "Your OTP is 123456",
  "batchRef": "campaign-20261130-01"
}

Response 200 ​

json
{
  "messageId": "b7e1c2d4-0000-4000-8000-000000000001",
  "clientRef": "smsup-0001",
  "status": "SUBMITTED",
  "parts": 1,
  "operator": "SANDBOX",
  "duplicate": false
}
FieldDescription
messageIdGateway id, for status lookups and webhook matching
statusstatus at answer time, normally SUBMITTED
partsnumber of parts actually sent
operatornetwork that carried it; SANDBOX messages always say SANDBOX
duplicatetrue when this clientRef was sent before: the original answer, no second send

Idempotency ​

Sending the same clientRef again (e.g. a retry after a timeout) returns the original answer with duplicate: true and calls the provider once, so retrying on a retryable: true error is safe.

Errors ​

See Error codes.