SMS API
Send transactional and promotional SMS messages globally. Ideal for OT, alerts, and notifications.
Send SMS
POST
/messages/smsSends a single SMS message.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| to | string | Yes | The recipient phone number (E.164). |
| body | string | Yes | The text content of the message. |
| sender_id | string | No | Custom 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
}