Introduction
Welcome to Kasturi Bulk SMS API documentation.
Bulk SMS allows you to send SMS to multiple destinations at once. Kasturi SMS, our brand of bulk SMS is a simple way to send a message to your customers, employees or contacts around the globe.
Intent of Document
This document is intended for partners seeking to integrate and transact with the Kasturi Bulk SMS. This document can used as a reference in the planning, building, and deploying of applications wishing to integrate Kasturi SMS system. Contained within are specific implementation details concerning general guidelines, transaction flow and validation process which all partner applications should adhere to. This information should help accelerate the integration efforts of Kasturi SMS with your application.
This document does not necessarily define specific ways to implement the guidelines and procedures contained within. Vendor, platform, and architectural considerations may influence the manner in which individual systems comply.
The focus of this document is to detail how applications establish connectivity to Kasturi SMS and outline the mechanism. A full and detailed description of the process and associated data elements is included.
For any queries:
Email : kasturisanjaal@gmail.com
Phone : 9855052636
For Balance Enquiry
For authorization value Click Me
$curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://sms.kasturisanjaal.com/index.php/api/phone/balanceenquiry', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_HTTPHEADER => array( 'Accept: application/json', 'Authorization: XXXXXXXXXXXXXXXXXXXXXXXXXXXX', ), )); $response = curl_exec($curl); curl_close($curl); echo $response;
For Number Verification
For authorization value Click Me
$curl = curl_init(); $data = array( 'phone'=>'98******,98*******', //With or without country code ); curl_setopt_array($curl, array( CURLOPT_URL => 'https://sms.kasturisanjaal.com/index.php/api/phone/verifynumber', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_POSTFIELDS =>json_encode($data), CURLOPT_HTTPHEADER => array( 'Accept: application/json', 'Authorization: XXXXXXXXXXXXXXXXXXXXXX', 'Content-Type: application/json', ), )); $response = curl_exec($curl); curl_close($curl); echo $response;
For Sending Message
For authorization value Click Me
$curl = curl_init(); $data = array( 'phone'=>'98******,98*******', //With or without country code 'message'=>'This is demo message', 'type'=>"1" //1 for English and 2 for unicode ); curl_setopt_array($curl, array( CURLOPT_URL => 'https://sms.kasturisanjaal.com/index.php/api/phone/sendsms', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_POSTFIELDS =>json_encode($data), CURLOPT_HTTPHEADER => array( 'Accept: application/json', 'Authorization: XXXXXXXXXXXXXXXX', 'Content-Type: application/json', ), )); $response = curl_exec($curl); curl_close($curl); echo $response;
Response Code
When you call our API you will get response in the following format :
{ "data": { "response": "1600" } }And the response code implies following values
1600 : Message successfully sent. 1601 : Could not save your record. 1602 : Insufficient balance. 1603 : Invalid key. 1604 : User temporarily disabled. 1605 : Invalid sender ID. 1606 : Invalid message. 1607 : Invalid destination. 1608 : Invalid message type. 1609 : Access denied temporarily due to missing connection on mobile operator's Network or System Maintenance. 1610 : Something went wrong due to internet. Try again later. 1611 : Phone number is not supplied.