Skip to content

Quick Start

import { Steps } from ‘@astrojs/starlight/components’;

  1. Get your API key

    Log in to your dashboard, go to Settings → API Keys, and create a key with the sms:send scope.

  2. Send your first message

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": "Hello! This is my first SMS."
}'
  1. Check the response
{
"messageId": "550e8400-e29b-41d4-a716-446655440000",
"status": "sent",
"provider": "provider"
}
  1. Check delivery status
Terminal window
curl https://send.virgincareer.lk/api/v1/sms/messages \
-H "Authorization: Bearer sk_your_key"

That’s it! You’ve sent your first SMS. Next, explore bulk sending or scheduling.