Quick Start
import { Steps } from ‘@astrojs/starlight/components’;
-
Get your API key
Log in to your dashboard, go to Settings → API Keys, and create a key with the
sms:sendscope. -
Send your first message
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." }'- Check the response
{ "messageId": "550e8400-e29b-41d4-a716-446655440000", "status": "sent", "provider": "provider" }- Check delivery status
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.