Skip to main content

Endpoint

string
required
application/json

Single submission

Send one SMS by putting one object in the listsms array.

Multiple submission

Send several SMS in one request by adding one object per message to the listsms array.

Request parameters

The request body must be JSON and include the parameters below.
string
required
The API key assigned to you for authentication. Generate it in the portal under API. See API keys.
array
A list of one or more SMS message objects to send.

listsms object

Each object in the listsms array is one SMS message.
string
required
The sender ID or name that appears as the message originator.
string
required
The recipient’s mobile number, including the country code. For example, 918872725225.
string
required
The text content of the SMS.
string
Your own unique identifier for tracking the message. Returned as CLIENTMSID on the delivery receipt.

Response

The API returns a JSON response under smslist → sms, with one record per submitted message showing its processing status.

Success fields

string
Status description of the submission.
integer
Numeric response code. 0 means success.
string
Unique internal message identifier. The same value arrives as MSGID on the delivery receipt.
array
IDs for the parts of a multipart message. Empty for a single-part message.
string
Destination mobile number.
string
Submission status: success.

Failure fields

string
Cause of the submission failure.
integer
Error code. 700 means the mobile number format is invalid.
string
The mobile number you provided.
string
The clientsmsid you passed, for reference.
string
Submission status: fail.

Submission codes

A 0 means OneXtel accepted the message for delivery, not that it was delivered. The delivery outcome arrives later on the DLR callback.