How to Send SMS Through API

CoderSys SMS API can be used by both GET and POST Method. You can send SMS from your software or application by integrating CoderSys SMS API. Just follow the code samples below to send SMS API from your applications. To obtain your API Key, please login to your SMS Panel & go to "API" page, you will get your API KEY here. Now you have to follow the instructions below:

Send SMS
Endpoint
https://sms.codersys.com/api/smsapi
Parameters
Name Meaning
api_key Required. Your API KEY is used to authenticate in our system.
from_type Required.NonMasking / Masking.
sender_id Required.If you have an approved Sender ID, you can use that senderid or you need to use phone number
to_numbers Required. The recipient numbers. Multiple numbers must be separated by comma(,). The Number must start with country code(880) or Standard 01X.
body Required. text for normal SMS/unicode for Bangla SMS.
schedule Optional. The schedule date and time to send your message. Date and time must be formatted as Y-m-d H:i:s (eg. 2021-10-13 16:00:52)
Request
https://sms.codersys.com/api/smsapi?api_key={Your API Key}&from_type=NonMasking&senderid={YOUR_Sender_ID}&to_numbers={TO_NUMBER}&body={MESSAGE}
Response
{
    "response": "1016"},
}
Balance API
Endpoint
https://sms.codersys.com/api/check/balance
Parameters
Name Meaning
api_key Required. Your API KEY is used to authenticate in our system.
Request
https://sms.codersys.com/api/check/balance/?api_key={YOUR_API_KEY}
Response
{
  "error": 0,
  "msg": "Success",
  "data": {
    "balance": "00.0000"
  }
}
Error Codes
Common Errors
Error - 0 Success. Everything worked as expected.
Error - 400 The request was rejected, due to a missing or invalid parameter.
Error - 403 You don't have permissions to perform the request.
Error - 404 The requested resource not found.
Error - 405 Authorization required.
Error - 409 Unknown error occurred on Server end.
Send SMS Errors
Error - 410 Account expired
Error - 411 Reseller Account expired or suspended
Error - 412 Invalid Schedule
Error - 413 Invalid Sender ID
Error - 414 Message is empty
Error - 415 Message is too long
Error - 416 No valid number found
Error - 417 Insufficient balance
Error - 420 Content Blocked

Meet Our Partners

Contact

Contact Us

Our Address

House 05 Road 04/C, Mohammadpur, Dhaka

Email Us

info@codersys.com

Call Us

+88 09613-247034

Loading
Your message has been sent. Thank you!