Upload and send bulk SMS messages
Overview
This API allows an enterprise to upload multiple messages at one time by creating a CSV file containing mobile numbers and corresponding messages. Messages can be the same or different for each recipient.
HTTP Method
This API uses the POST method to upload and send bulk SMS messages.
POST
API Endpoint
https://test1bulksms.mytoday.com/BulkSms/UploadCsvFile
Request Headers
Authentication details are required to access the API. Ensure you include the necessary tokens or credentials in your request headers.
| Header Name | Type | Description | Example | Required |
|---|---|---|---|---|
| Content-Type | String | Media type of the request body | application/x-www-form-urlencoded | Yes |
Request Body
All necessary parameters should be passed in the request body in JSON format.
| Parameter | Type | Description | Example | Required |
|---|---|---|---|---|
| feedid | String | Account ID | account_id | Yes |
| username | String | Username | username | Yes |
| password | String | Password | Password | Yes |
| filestring | String | CSV content with message details | <Mobile>,"SMS", "senderId", "Futuretime","MessageId","Templateid" | Yes |
| templateid | String | Template ID | templateid | Yes |
| entityid | String | Entity ID | entityid | Yes |
| async | Integer | Async or sync flag | 0 / 1 | Yes |
| short | Integer | Short URL flag | 0 / 1 | Optional |
Example Request
curl --location --request POST 'https://test1bulksms.mytoday.com/BulkSms/UploadCsvFile' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'feedid=<account_id>' \
--data-urlencode 'username=<username>' \
--data-urlencode 'password=<Password>' \
--data-urlencode 'filestring=<Mobile>,"SMS","senderId","Futuretime","MessageId","Templateid"' \
--data-urlencode 'templateid=<templateid>' \
--data-urlencode 'entityid=<entityid>' \
--data-urlencode 'async=<0/1>' \
--data-urlencode 'short=<0/1>'
