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.
| Field | Type | Required | Description |
|---|---|---|---|
clientRef | string | ✓ | your reference, unique per client; prevents double sends |
route | string | ✓ | a route the client may use, e.g. TRUE or SANDBOX |
from | string | ✓ | an approved sender name |
to | string | ✓ | destination in international format, e.g. 66812345678 |
text | string | ✓ | message text |
batchRef | string | batch 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
}| Field | Description |
|---|---|
messageId | Gateway id, for status lookups and webhook matching |
status | status at answer time, normally SUBMITTED |
parts | number of parts actually sent |
operator | network that carried it; SANDBOX messages always say SANDBOX |
duplicate | true 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.