BULK SMS API Integration
BULK SMS API Integration
This section contains your RESTful API for BULK SMS API integration.
BULK SMS API Integration
BULK SMS API Integration
This section contains your RESTful API for BULK SMS API integration.
The VTU Africa API uses API Key for Authentication.
Please use your APIKEY for authentication
live URL: https://vtuafrica.com.ng/portal/api/sms/
Sandbox: https://vtuafrica.com.ng/portal/api-test/sms/
Parameters: as specified in the parameters below:
PARAMETERS | Required/Optional | TYPE | DESCRIPTION |
apikey | R | String | The USER API key created at https://vtuafrica.com.ng. |
message | R | String | This is the SMS or Message to be sent. |
sendto | R | Number | The phone number to receive the SMS. Separate multiple numbers with comma (,). |
sender | R | String | This is the Sender ID that will appear as the sender instead of phone number |
ref | O | String | This is a unique reference with which you can use to execute and query the transaction. |
SAMPLE CODE
$sandbox = "https://vtuafrica.com.ng/portal/api-test/sms/?apikey=1234&message=testing&sendto=0803992222,085432323&sender=VTUAFRICA&ref=8284666332234"; $host = "https://vtuafrica.com.ng/portal/api/sms/?apikey=1234&message=testing&sendto=0803992222,085432323&sender=VTUAFRICA&ref=8284666332234"; //Initialize cURL. $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $host); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); $data = curl_exec($ch); //Close the cURL handle. curl_close($ch); $result = json_decode($data);
EXPECTED RESPONSE
{"code":101, "description":{"Status":"Completed", "Service"=>"Bulk SMS","Charge":"4","Previous_Balance"=>"1000","Current_Balance"=>"902", "ReferenceID"=>"884666332234","message"=>"Message Sent Successful" "transaction_date":"21 April 2025, 07:50 PM"}}