Skip to content

Send a Message

POST /api/v1/sms/send
FieldTypeRequiredDescription
tostringRecipient phone number in E.164 format (e.g. +94771234567)
bodystringMessage content (max 1600 characters)
fromstringSender ID (must be approved on your account)
scheduledAtISO 8601 stringSchedule for a future time instead of sending immediately
Terminal window
curl https://send.virgincareer.lk/api/v1/sms/send \
-H "Authorization: Bearer sk_your_key" \
-H "Content-Type: application/json" \
-d '{
"to": "+94771234567",
"body": "Your OTP is 482910. Valid for 5 minutes.",
"from": "MYAPP"
}'
{
"messageId": "550e8400-e29b-41d4-a716-446655440000",
"status": "sent",
"provider": "default"
}

All numbers must be in E.164 format: + followed by country code and number, no spaces or dashes.

✅ Valid❌ Invalid
+947712345670771234567
+44791112345607911 123456