Send SMS (POST)
Send SMS messages using the POST method with a JSON request body. This method is recommended for sending messages with additional parameters.
curl -X POST "https://accounts.netvox.ng/api/v2/SendSMS" \
-H "Content-Type: application/json" \
-d '{
"SenderId": "YOUR_SENDER_ID",
"Is_Unicode": true,
"Is_Flash": false,
"SchedTime": "",
"GroupId": "",
"Message": "Hello from Ruach SMS API!",
"MobileNumbers": "1234567890,0987654321",
"ApiKey": "YOUR_API_KEY",
"ClientId": "YOUR_CLIENT_ID"
}'
Request Body
Approved sender ID for the message
Text message content to send
Comma-separated mobile numbers (e.g., “1234567890,0987654321”)
Your API key for authentication
Your client identifier for authentication
Set to true for Unicode messages (default: false)
Set to true for flash messages (default: false)
Schedule time in yyyy-MM-dd HH:MM format (optional)
Group ID for sending to a group (optional)
Response
Error code (0 for success)
Description of the result
Mobile number that received the message
Unique message ID for tracking
Success Response
{
"ErrorCode": 0,
"ErrorDescription": "Success",
"Data": [
{
"MobileNumber": "7894561230",
"MessageId": "3bb944ad-d943-419f-83dc-f979002a8c0b"
}
]
}
Error Response
{
"ErrorCode": 003,
"ErrorDescription": "SenderId cannot be blank"
}
Message Types
Standard SMS
{
"Is_Unicode": true,
"Is_Flash": false
}
Unicode SMS (for special characters)
{
"Is_Unicode": true,
"Is_Flash": false
}
Flash SMS (appears on screen without saving)
{
"Is_Unicode": true,
"Is_Flash": true
}
Scheduling Messages
To schedule a message for later delivery:
{
"SchedTime": "2024-12-25 10:00"
}
Use Cases
- Transactional messages: Send OTPs, confirmations, and notifications
- Marketing campaigns: Send promotional messages to multiple recipients
- Scheduled messaging: Send messages at specific times
- Group messaging: Send messages to entire contact groups