Sendexa LogoDocs

Send SMS

Send a single SMS message with comprehensive delivery tracking, automatic number formatting, and real-time status updates.

Quick Start Video (2 mins)
How to send your first SMS with Sendexa API
2:15

International Format Support

Automatically converts local Ghanaian numbers (055xxxxxxx) to international format (23355xxxxxxx)

Smart Segmentation

Messages >160 characters are automatically split into multiple segments (max 1530 chars)

Sender ID Verification

Only pre-approved sender IDs can be used. Pending IDs will be automatically rejected.

Delivery Tracking

Real-time delivery status with provider-level feedback and error codes

Avg Response Time

150ms

95th percentile

Cost per SMS

₵0.035

1 credit = 1 SMS

Max Message Length

1530

characters (10 segments)

Rate Limit

100/s

per API key

POST
/v1/sms/send
Core
Stable

Request Body

application/json
{
"to": "0555539152",
"from": "YourBrand",
"message": "Hello from Sendexa!"
}

Response

{
"success": true,
"message": "SMS sent successfully",
"data": {
"id": "clxyz123abc",
"messageId": "exa_api_123456789_abc123def",
"status": "delivered",
"cost": 1,
"to": "233555539152",
"from": "YourBrand",
"segments": 1,
"timestamp": "2024-01-15T10:30:00Z",
"estimatedDelivery": "2024-01-15T10:30:05Z"
}
}

Try It Yourself

POST
https://api.sendexa.co/v1/sms/send

Code Examples

curl -X POST 'https://api.sendexa.co/v1/sms/send' \
-H 'Content-Type: application/json' \
-H 'Authorization: Basic YOUR_BASE64_CREDENTIALS' \
-d '{
"to": "0555539152",
"from": "YourBrand",
"message": "Hello from Sendexa SMS API!"
}'

Common Use Cases

OTP

Two-Factor Authentication

Send verification codes with 5-minute expiry

Marketing

Promotional Messages

Schedule campaigns with personalized content

Transactional

Order Confirmations

Real-time updates with delivery tracking

HTTP Status Codes

CodeStatusDescription
200OKSMS sent successfully
400Bad RequestInvalid phone number or missing parameters
401UnauthorizedInvalid or missing API credentials
403ForbiddenSender ID not approved or insufficient credits
429Too Many RequestsRate limit exceeded (100 requests/second)