Send SMS via Registered Sender
const url = 'https://example.com/v1/senders/example/messages';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"text":"Your OTP is 123456","to":"6281234567890","uploadby":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”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
Request Body required
Section titled “Request Body required ”object
SMS body text. GSM-7 (max 580 septets) or, when the sender’s route supports unicode, UCS-2 (max 268 UTF-16 units).
Example
Your OTP is 123456Recipient phone number in E.164 or local format (will be normalized).
Example
6281234567890Optional operator attribution (mapped to uploadby or equivalent).
Responses
Section titled “ Responses ”Message accepted
Successful response after a message has been accepted for sending.
object
object
The internal Message ID. Use this ID (without the ‘msg_’ prefix) to query the message status.
Example
{ "messages": [ { "id": "msg_f7a816e2-8397-11f0-8e34-010203040506" } ]}Validation error / inactive sender / missing integration
Unauthorized
Sender id not found for this tenant