Send Bulk SMS
Use this endpoint to send one, or many SMS to one, or many contacts with 1 request. This is great for mailshots, or where you want to vary the message per contact without sending 1 request per contact
Endpoint
[POST] https://usenotifier.com/api/sms/bulkExample Request
$response = Http::withToken('YOUR_API_KEY')
->post('https://usenotifier.com/api/sms', [
[
"to" => "+447700900389",
"body" => "Message One"
],
[
"to" => "+447700900077",
"body" => "Message Two"
],
]);<?php
$client = new Client();
$headers = [
'Authorization' => 'Bearer YOUR-API-KEY',
'Content-Type' => 'application/json'
];
$body = '[
{
"to": "+447700900389",
"body": "Message One"
},
{
"to": "+447700900077",
"body": "Message Two"
}
]';
$request = new Request('POST', 'https://usenotifier.com/api/sms/bulk', $headers, $body);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();Example Response
Webhook
Last updated