API Documentation of SMSBangladesh
SMS SENDING VIA API FOR BULK:
Connection protocol HTTP
Link API http://panel.smsbangladesh.com/api
Transfer method GET
Sample Request (For single message):
http://panel.smsbangladesh.com/api?user=username&password=yourpassword&from=maskingna
me&to=88017XXXXXXXX&text=yourmessage
Sample Request (For multiple message):
http://panel.smsbangladesh.com/api?user=username&password=yourpassword&from=maskingna
me&to=88017XXXXXXXX,88018XXXXXXXX,88019XXXXXXXX&contentid=contentid&text=yourmessag
e
DESCRIPTION OF INPUT PARAMETERS FOR SINGLE MESSAGE:
Parameter Description
user Your SMSBangladesh username
password Your SMSBangladesh password
Sender ID or your masking name.
from
Eg: NAJJTECH
MSISDN of the recipient that the message will be sent to.
to
Eg: 8801316686977 (Do not use "+" before the country code)
Your message body that you want to send.
text
Eg: Hello Mr.X , how are you?
Note: For promotional messages text should be “Bangla”.
DESCRIPTION OF INPUT PARAMETERS FOR MULTIPLE MESSAGE:
Parameter Description
user Your SMSBangladesh username
password Your SMSBangladesh password
from Sender ID or your masking name.
Eg: NAJJTECH
MSISDN of the recipient that the message will be sent to.
to Eg: 8801316686977 (Do not use"+" before the country code)
Contentid of your approved content.
contentid Eg: EbGx7evWN9
Your message body that you want to send.
text
Eg: Hello Mr.X , how are you?
SAMPLE RESPONSE:
{
"success": 1,
"message": "SMS send successfully.",
"response_code": 100,
"campaign_cost": 0.5,
"delivery_status": [
{
"MSISDN": "8801829673377",
"Status": 1,
"StatusText": "Sent"
},
{
"MSISDN": "8801730085980",
"Status": 0,
"StatusText": "Failed"
}
]
}
DESCRIPTION OF RESPONSE:
Field Description
1 = SMS sent.
success
0 = SMS sent failed.
message Message from the system based on success or failure.
response_code 100 = SMS send successfully.
101 = Username empty.
102 = Password empty.
103 = Recipient number empty.
104 = Message text empty.
105 = Invalid credential.
106 = Your Balance is not sufficient.
107 = Reseller balance is not sufficient.
108 = Message text is too long.
111 = ContentId empty
campaign_cost The expense for this message
{
"MSISDN": "8801829673377", // Mobile no
"Status": 1, // sms sent
"StatusText": "Sent"
},
delivery_status
{
"MSISDN": "8801730085980", // Mobile no
"Status": 0, // sms sent failed
"StatusText": "Failed"
}
SMS SENDING VIA API FOR OTP:
Connection protocol HTTP
Link API http://panel.smsbangladesh.com/otp
Transfer method GET
Sample Request (For single message):
http://panel.smsbangladesh.com/otp?user=username&password=yourpassword&from=maskingna
me&to=88017XXXXXXXX&text=yourmessage
DESCRIPTION OF INPUT PARAMETERS:
Parameter Description
user Your SMSBangladesh username
password Your SMSBangladesh password
Sender ID or your masking name.
from
Eg: NAJJTECH
MSISDN of the recipient that the message will be sent to.
to
Eg: 8801316686977 (Do not use "+" before the country code)
Your message body that you want to send.
text
Eg: Your OTP is 1234.
SAMPLE RESPONSE:
{
"success": 1,
"message": "SMS send successfully.",
"response_code": 100,
"campaign_cost": 0.50,
"status": "Delivered"
}
DESCRIPTION OF RESPONSE:
Field Description
1 = SMS sent.
success
0 = SMS sent failed.
message Message from the system based on success or failure.
response_code 100 = SMS send successfully.
101 = Username empty.
102 = Password empty.
103 = Recipient number empty.
104 = Message text empty.
105 = Invalid credential.
106 = Your Balance is not sufficient.
107 = Reseller balance is not sufficient.
108 = Message text is too long.
campaign_cost The expense for this message
status Delivered or Failed
SMS STATUS VIA API:
Connection protocol HTTP
Link API http://panel.smsbangladesh.com/smsstatus
Transfer method GET
Sample Request (For single message):
http://panel.smsbangladesh.com/smsstatus?user=username&password=yourpassword&smsid=910-
17XXXXXXXX
DESCRIPTION OF INPUT PARAMETERS:
Parameter Description
user Your SMSBangladesh username
password Your SMSBangladesh password
Smsid is a unique key to track your sms status.
smsid
Eg: 910-17XXXXXXXX
SAMPLE RESPONSE:
"success":1,
"response_code":100,
"message":"SMS send successfully",
"STATUS":"SENT"
DESCRIPTION OF RESPONSE:
Field Description
1 = SMS sent.
success
0 = SMS sent failed.
message Message from the system based on success or failure.
response_code 100 = SMS send successfully.
101 = Username empty.
102 = Password empty.
109 = smsid empty
status Sent or Failed
USER AVAILABLE BALANCE VIA API:
Connection protocol HTTP
Link API http://panel.smsbangladesh.com/balance
Transfer method GET
Sample Request (For single message):
http://panel.smsbangladesh.com/balance?user=username&password=yourpassword
DESCRIPTION OF INPUT PARAMETERS:
Parameter Description
user Your SMSBangladesh username
password Your SMSBangladesh password
SAMPLE RESPONSE:
"message":"Active Balance Available",
"response_code":110,
"AVAILABLE BALANCE =":"502.56559"
DESCRIPTION OF RESPONSE:
Field Description
message Message from the system based on success or failure.
response_code 101 = Username empty.
102 = Password empty.
105 = Invalid credential.
106 = No Credits available
110 = Available balance
Available balance Current balance