Sending SMS To Groups
In case you want to send bulk SMS to predefined groups of recipients, use Cequens Send SMS to Groups API. The API will return to you the messages’ ID to track them later using Cequens Get Message Details by ID API.
Using Cequens Send SMS to Groups API is quite simple. First, submit an HTTP Request with the group’s name, the message text, and other important parameters, and then receive a Response that includes the SMS IDs.
Authorization
bearerAuth JWT access token returned by Signing In (POST /auth/v1/tokens/).
In: header
Request Body
application/json
The message content that you want to send.
The name of the message sender.
Message type either text or unicode Can be text or unicode
The names of the groups to which you want to send the SMS separated by commas.
An integer used as an identifier for your request to track it.
int320A string to specify the desired delivery time of the SMS.
A string to define the URL to which you would like to send the delivery receipts (DLR).
A string to define the data coding scheme of the SMS.
Response Body
application/json
application/json
curl -X POST "https://example.com/sms/v1/messages/groups" \ -H "Content-Type: application/json" \ -d '{}'"{\n\"replyCode\": 0,\n\"replyMessage\": \"Request handled successfully\",\n\"requestId\": \"6b8cab90-9997-11e4-9673-8d6d6ef9b02b\",\n\"clientRequestId\": 123456789,\n\"requestTime\": \"2016-01-22T11:04:02.648Z\",\n\"data\": {\n\"invalidRecipients\": \"string\",\n\"SentSMSIDs\": [\n{\n\"SMSID\": \"ddb122a1-4936-43ef-a09c-b6a24e2e511f, ddb122a1-4936-43ef-a09c-b6a24e2e722e\"\n}\n]\n}\n}"Getting SMS Details GET
You can track any SMS you have sent using its ID by submitting the Get Message Details by ID API request. The API will return the details of the SMS message you want to track, such as the account ID that sent the SMS, SMS delivery status and the SMS sent date.
Retrieving SMS Messages GET
You can track the messages you have sent during a certain period by submitting the Get Messages Details Within Date Range API request. The API will return an array of multiple records. Each record includes the details of an SMS message that was sent during the provided date range in the API request. You can also specify the number of SMS messages you want to receive per response page, as well as the response page index number you want to receive. To use Cequens Get Messages Details Within Date Range API, first submit an HTTP Request with the date range, and other optional details, and then receive a Response that includes the details of all SMS messages sent during the provided date range.