SMS API

Send transactional and promotional SMS messages globally. Ideal for OT, alerts, and notifications.

Send SMS

POST/messages/sms

Sends a single SMS message.

Parameters

ParameterTypeRequiredDescription
tostringYesThe recipient phone number (E.164).
bodystringYesThe text content of the message.
sender_idstringNoCustom sender ID (if approved).

Example Request

bash
curl -X POST https://api.devsecit.com/v1/messages/sms \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "+919876543210",
    "body": "Your verification code is 1234. Do not share this code.",
    "sender_id": "D-CALLER"
  }'

Example Response

json
{
  "id": "msg_sms_987654321",
  "status": "sent",
  "segments": 1,
  "cost": 0.05
}