Skip to content

Scheduled SMS

POST /api/v1/scheduler/schedule
FieldTypeRequiredDescription
tostringRecipient phone number
bodystringMessage content
fromstringSender ID
scheduledAtISO 8601 stringWhen to send — must be in the future
Terminal window
curl https://send.virgincareer.lk/api/v1/scheduler/schedule \
-H "Authorization: Bearer sk_your_key" \
-H "Content-Type: application/json" \
-d '{
"to": "+94771234567",
"body": "Your appointment is tomorrow at 10am. Reply STOP to opt out.",
"scheduledAt": "2026-04-01T09:00:00.000Z"
}'
{
"messageId": "550e8400-...",
"jobId": "1234",
"scheduledAt": "2026-04-01T09:00:00.000Z",
"status": "scheduled"
}
DELETE /api/v1/scheduler/cancel/:messageId
Terminal window
curl -X DELETE \
https://send.virgincareer.lk/api/v1/scheduler/cancel/550e8400-... \
-H "Authorization: Bearer sk_your_key"