Bulk SMS Messaging
Broadcast SMS campaigns to hundreds or thousands of recipients in a single API call.
Send Bulk SMS
POST /api/v1/sms/bulk
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
recipients | array or string | Yes | Array of numbers ["01700...", "01800..."] or comma/newline separated string |
message | string | Yes | SMS message body |
type | string | No | Message category tag (e.g. campaign) |
Example Request
bash
curl -X POST "https://pingoline.com/api/v1/sms/bulk" \
-H "Authorization: Bearer YOUR_API_TOKEN_HERE" \
-H "Content-Type: application/json" \
-d '{
"recipients": ["01712345678", "01812345678", "01912345678"],
"message": "Special 20% discount on all orders this weekend! Shop now."
}'php
use PingoLine\Laravel\Facades\PingoLine;
$res = PingoLine::sendBulkSms(
recipients: ['01712345678', '01812345678', '01912345678'],
message: 'Special 20% discount on all orders this weekend! Shop now.'
);typescript
import { PingoLine } from 'pingoline';
const pingoline = new PingoLine({ apiKey: process.env.PINGOLINE_API_KEY! });
const res = await pingoline.sendBulkSms({
recipients: ['01712345678', '01812345678', '01912345678'],
message: 'Special 20% discount on all orders this weekend! Shop now.',
});