Lewati ke konten

Send SMS via Registered Sender

POST
/v1/senders/{entry_point}/messages
curl --request POST \
--url https://example.com/v1/senders/example/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "text": "Your OTP is 123456", "to": "6281234567890", "uploadby": "example" }'

Sends a single SMS via the supplier implied by the sender registration (Jatis, IOH, 1E, Titap). Path id is the virtual entry_point for dedicated (owned sms_senders.entry_point) and shared (active sms_subscriptions.entry_point). sms_senders.id UUID is still accepted for legacy campaigns.

entry_point
required
string

Virtual SMS entry_point for dedicated (owned sms_senders.entry_point) and shared (an active SMS subscription of a billing account of this API key); sms_senders.id UUID still accepted

Media type application/json
object
text
required

SMS body text. GSM-7 (max 580 septets) or, when the sender’s route supports unicode, UCS-2 (max 268 UTF-16 units).

string
Example
Your OTP is 123456
to
required

Recipient phone number in E.164 or local format (will be normalized).

string
Example
6281234567890
uploadby

Optional operator attribution (mapped to uploadby or equivalent).

string | null

Message accepted

Media type application/json

Successful response after a message has been accepted for sending.

object
messages
required
Array<object>
object
id
required

The internal Message ID. Use this ID (without the ‘msg_’ prefix) to query the message status.

string
messaging_product
required
string
Example
{
"messages": [
{
"id": "msg_f7a816e2-8397-11f0-8e34-010203040506"
}
]
}

Validation error / inactive sender / missing integration

Unauthorized

Sender id not found for this tenant