sms array, so one request can carry several.
This API covers India, and carries the DLT fields Indian traffic requires. For destinations
outside India, use the SMS List API — a different host with a
different authentication scheme. See how the two compare.
Endpoint
Headers
string
required
API key issued by OneXtel.
string
required
Must be
application/json.Example request
The sms array
The sms array carries one or more messages in a single call. Each object is one message.
string
required
Sender ID. Must be DLT-approved — see DLT registration.
string
required
Recipient mobile number.
string
required
Content of the SMS.
string
required
Message type:
SI, OTP, or SE. Case-sensitive.SI and SE correspond to the DLT consent categories Service Implicit and Service Explicit —
see DLT registration.string
DLT-approved template ID.
string
DLT entity ID.
integer
1 for a Unicode message, 0 for normal text. Required when sending Unicode.string | object
Up to five custom references of your own, echoed back on the
delivery report so you can match a receipt to your own
record. Each slot takes either a plain string or a nested object:The nested form lets one slot carry several values — useful when five slots are not enough,
or when you want the pairs kept together.
The nested object form is supported on SMS only. WhatsApp and RCS take custom references as
plain values. Sending an object on those channels is not supported.
templateId and entityId are marked optional in the API, but DLT-regulated traffic in India
will be rejected by the operator without them. Treat them as required for Indian destinations.
See DLT registration.Top-level fields
string
Identifier used to group and track messages as a campaign. Set it if you want the send to be
filterable in reports.
string
Country code applied to recipient numbers — for example
+91.boolean
true rejects invalid requests outright; false processes them anyway.Set
validation to true while integrating. With false, a malformed request is accepted and
fails silently downstream, which is far harder to diagnose than an upfront rejection.URL shortener
Include theurlShortener object when your message contains a link you want shortened and
tracked.
integer
1 enables shortening, 0 disables it. Required if short-URL conversion is needed.string
The original URL to shorten. Required when
flag is 1.string
Sender ID associated with the shortened URL. Required when
flag is 1.string
Custom domain, if one is configured for your account. Required when
flag is 1.integer
1 enables click tracking, 0 disables it. Required if location tracking is needed.Response
A request with a valid API key returns HTTP 200, with one entry per message insidesmslist.sms[]. The wrapper key is lowercase smslist.
Accepted
integer
Per-message result.
200 means the message was accepted for processing.string
Outcome text — for an accepted message, the tracking-id confirmation.
string
Tracking ID for the accepted message.

