Single Message API

Send single or bulk SMS messages using the Single Message API

Overview

This API allows an enterprise to send a single message to one or more mobile numbers (a maximum of 50 mobile numbers at one time). It supports both GET and POST methods and can be used in synchronous or asynchronous mode.

HTTP Methods

This API uses the below HTTP method to send single or bulk SMS messages using the Single Message API.

  • GET
  • POST

API Endpoint

https://bulkpush.mytoday.com/BulkSms/SingleMsgApi

Request Headers

Header NameTypeDescriptionExampleRequired
Content-TypeStringMedia type of the request bodyapplication/x-www-form-urlencodedYes (POST)
api-key StringAPI key for authentication--

Request Parameters

GET Method

Request parameters must be URL encoded.

ParameterTypeDescriptionExampleRequired
feedidStringAccount IDaccount_idYes
usernameStringUsernameusernameYes
passwordStringPasswordpasswordYes
ToStringMobile number(s) (max 50)mobileYes
TextStringMessage textmessageYes
templateidStringTemplate IDtemplateidYes
entityidStringEntity IDentityidYes
asyncIntegerAsync or sync flag1 / 0Yes
shortIntegerShort URL flag1 / 0Optional

POST Method

Allows uploading up to 10,000 messages.

ParameterTypeDescriptionExampleRequired
feedidStringAccount IDaccountidYes
usernameStringUsernameusernameYes
passwordStringPasswordpasswordYes
ToStringMobile or comma-separated mobilesmobileYes
TextStringSMS textMessageYes
templateidStringTemplate IDtemplateidYes
entityidStringEntity IDentityidYes
asyncIntegerAsync or sync flag1 / 0Yes
shortIntegerShort URL flag1 / 0Optional

Example Requests

GET

https://test1bulksms.mytoday.com/BulkSms/SingleMsgApi?feedid=<account_id>&username=<username>&password=<password>&To=<mobile>&Text=<message>&templateid=<templateid>&entityid=<entityid>&async=<1/0>&short=<1/0>

POST

curl --location --request POST 'https://test1bulksms.mytoday.com/BulkSms/SingleMsgApi' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'feedid=accountid' \
--data-urlencode 'username=username' \
--data-urlencode 'password=password' \
--data-urlencode 'To=mobile' \
--data-urlencode 'Text=Message' \
--data-urlencode 'templateid=templateid' \
--data-urlencode 'entityid=entityid' \
--data-urlencode 'short=1/0' \
--data-urlencode 'async=1/0'

Example Responses

<RESULT REQID ='29749608774'> </RESULT>
Sample success Sync Response :