An Application Programming Interface (API) is one way to connect to SMSParo's Core Messaging Platform. This provides an easy, efficient and flexible option to integrate with your website / application, facilitating auto-generated SMS Text messages to be delivered to the intended recipients mobile phones. This method does not require SMSParo's Software Platform at your Enterprise/Data Center site.

Who Can Use it?

Are you a developer thinking of integrating sms alert or phone verification code into your application? We got the answer. Through our robust API, you can interface your website, application or system with our sms gateway by using our HTTP API.

You will be able to send SMS and also check your balance with our API.


To Send



To check Balance



1. recipient : The destination phone numbers. Separate multiple numbers with comma(,)

3. username: Your account username on

4. password: Your account password on

5. sender: The sender ID to show on the receiver's phone. This could be the name of your organisation or business name.

6. message: The text message to be sent

7. balance: Set to true only when you want to check your credit balance


Sample PHP Script to send SMS with API

//Declare a function that does the does the sending

 function httpRequest($fields, $sendpage){
    $curl = curl_init($sendpage);
    curl_setopt($curl, CURLOPT_POST, true);
    curl_setopt($curl, CURLOPT_POSTFIELDS, $fields);
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
    $result = curl_exec($curl);

//Compose the sms and call the function with the required parameters

        $sendpage ="";
        $sendsms ="username=myusername&password=mypassword";
        $sendsms .="&sender=SMSPARO.COM";
        $sendsms .="&recipient=".$pno; //Assuming that $pno is the variable name that holds the phone number
        $sendsms .="&message=";
        $sendsms .="YOUR LOGIN CODE: $code . THE CODES EXPIRES IN 60 SECONDS";
        httpRequest($sendsms, $sendpage); // Call the functions and pass the parameters

The values that could be returned are



2904=SMS Sending Failed

2905=Invalid username/password combination

2906=Credit exhausted

2907=Gateway unavailable

2908=Invalid schedule date format

2909=Unable to schedule

2910=Username is empty

2911=Password is empty

2912=Recipient is empty

2913=Message is empty

2914=Sender is empty

2915=One or more required fields are empty



For Instance:

On success, the following code will be returned

OK 40 08060678106,08059780551


i.e OK<space>no of sms credits used<space>gsm numbers that failed

where 40=no of sms credits used

and 08060678106,08059780551 are the 2 numbers that failed.



Call 08060678106, 08157665321

© 2012 - 2017 Brigthnet NG. All Rights Reserved.