Get started
API Endpoint http://msg.smsd.one/
SMS Done provides programmatic access for sms service.
To use this API, you need an API key. Please contact us at [email protected] to get your own API key.
Developers API
Many To Many JSON Format:
{
type : "post",
url : "http://msg.smsd.one/smsapimany",
data : {
"api_key" : "{your api key}",
"senderid" : "{sender id}",
"scheduledDateTime" : "{schedule date time}",
"messages" : [
{
"to" : "88017xxxxxxxx",
"message" : "test sms content …"
},
{
"to" : "88018xxxxxxxx",
"message" : "test sms content …"
}
]
}
}
QUERY PARAMETERS
Parameter Name | Meaning/Value | Description |
---|---|---|
api_key | API Key | Your API Key (R6001XXXXXXXXXX) |
type | text/unicode | text for normal SMS/unicode for Bangla SMS |
contacts | mobile number | Exp: 88017XXXXXXXX+88018XXXXXXXX+88019XXXXXXXX... |
alive | Boolean | (optional) a boolean to filter alived characters |
msg | SMS body | N.B: Please use url encoding to send some special characters like &, $, @ etc |
label | transactional/promotional | use transactional label for transactional sms |
Credit Balance API
API URL :
http://msg.smsd.one/miscapi/(API Key )/getBalance
Delivery Report API
API URL : http://msg.smsd.one/miscapi/(API Key )/getDLR/getAll
API URL : Your API Key (R600XXXXXXXXXXXXXX)
SMS Shoot ID Enter the SMS ID returned when submitted SMS via API. It will return an array having mobile numbers and their DLR status.
API URL : http://msg.smsd.one/miscapi/(API Key )/getDLR/(SMS SHOOT ID)
API Key Retrieval
API URL :
http://msg.smsd.one/getkey/(username)/( password)
Username : Your account User ID used to login.
Password : Account password that you use to login.
Many To Many PHP Format :
"{your api key}",
"senderid" => "{sender id}",
"messages" => json_encode( [
[
"to" => "88017xxxxxxxx",
"message" => "test sms content …"
],
[
"to" => "88018xxxxxxxx",
"message" => "test sms content …"
]
])
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$response = curl_exec($ch);
curl_close($ch);
return $response;
}
?>
Errors
Error Code & Meaning :
Error Code | Meaning |
---|---|
1002 | Sender Id/Masking Not Found |
1003 | API Not Found |
1004 | SPAM Detected |
1005 | Internal Error |
1006 | Internal Error |
1007 | Balance Insufficient |
1008 | Message is empty |
1009 | Message Type Not Set (text/unicode) |
1010 | Invalid User & Password |
1011 | Invalid User Id |
1012 | Invalid Number |
1013 | API limit error |
1014 | No matching template |