POST
/api/v1/json/bulk/sms
Send bulk SMS messages via JSON API
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| sender_id | string | Required | Sender ID for the SMS |
| recipient | list | Required | List of recipient phone numbers |
| message_body | string | Required | SMS message content |
| callback_url | string | Optional | URL for delivery callbacks |
| source | string | Optional | Department or source of the message |
| user_reference_id | string | Optional | SMS message unique reference number |
Request & Response Examples
Request Body
{
"callback_url": "https://your-domain.com/sms/callback",
"message_body": "Welcome to our platform! Your account has been successfully activated. For support, visit our help center.",
"recipient": [
"26097123456"
],
"sender_id": "COMPANY"
}
Response Body
{
"api_reference": "1764184470578998353",
"data": [
{
"message_id": "dff31690-b450-4000-a6b7-141d8523ef10",
"mobile_number": "26097123456",
"status": "ACKNOWLEDGED"
}
],
"message": "successful",
"success": true
}
Code Examples
-keyword">curl -X POST https://api.unicom360.com/api/v1/json/bulk/sms \
-H "Authorization: Basic base64(username:password)" \
-H "Content-Type: application/json" \
-d '{\n "sender_id": "COMPANY",\n "callback_url": "https://your class="code-flag">-domain.com/sms/callback",\n "message_body": "Welcome to our platform! Your account has been successfully activated. For support, visit our help center.",\n "recipient": [\n "26097123456"\n ]\n}\n'