curl --request POST \
--url https://api.example.com/api/v1/sms/send \
--header 'Content-Type: application/json' \
--data '
{
"phoneNumber": "<string>",
"message": "<string>"
}
'{
"status": "<string>",
"message": "<string>",
"messageId": "<string>",
"recipient": "<string>"
}Send a single SMS message to a phone number
curl --request POST \
--url https://api.example.com/api/v1/sms/send \
--header 'Content-Type: application/json' \
--data '
{
"phoneNumber": "<string>",
"message": "<string>"
}
'{
"status": "<string>",
"message": "<string>",
"messageId": "<string>",
"recipient": "<string>"
}+254712345678)success or error)curl -X POST http://localhost:8000/api/v1/sms/send \
-H "Content-Type: application/json" \
-d '{
"phoneNumber": "+254712345678",
"message": "Your contract has been created successfully"
}'
{
"status": "success",
"message": "SMS sent successfully",
"messageId": "ATXid_abc123def456",
"recipient": "+254712345678"
}
{
"detail": "SMS service unavailable. Check AT_API_KEY."
}
200 - SMS sent successfully500 - SMS send failed503 - SMS service unavailable (API key not configured)