CSV Message API

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 NameTypeDescriptionExampleRequired
Content-TypeStringMedia type of the request bodyapplication/x-www-form-urlencodedYes

Request Body

All necessary parameters should be passed in the request body in JSON format.

ParameterTypeDescriptionExampleRequired
feedidStringAccount IDaccount_idYes
usernameStringUsernameusernameYes
passwordStringPasswordPasswordYes
filestringStringCSV content with message details<Mobile>,"SMS", "senderId", "Futuretime","MessageId","Templateid"Yes
templateidStringTemplate IDtemplateidYes
entityidStringEntity IDentityidYes
asyncIntegerAsync or sync flag0 / 1Yes
shortIntegerShort URL flag0 / 1Optional

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>'