curl --request POST \
--url https://api.example.com/api/v1/sms/test{
"status": "<string>",
"message": "<string>",
"messageId": "<string>",
"recipient": "<string>"
}Send a test SMS message to verify Africa’s Talking integration
curl --request POST \
--url https://api.example.com/api/v1/sms/test{
"status": "<string>",
"message": "<string>",
"messageId": "<string>",
"recipient": "<string>"
}success or error)# Test with default number
curl -X POST "http://localhost:8000/api/v1/sms/test"
# Test with specific number
curl -X POST "http://localhost:8000/api/v1/sms/test?phone_number=%2B254712345678"
{
"status": "success",
"message": "SMS sent successfully",
"messageId": "ATXid_test123",
"recipient": "+254733000000"
}
{
"status": "error",
"message": "SMS service not available. Check AT_API_KEY environment variable."
}
{
"status": "error",
"message": "SMS test failed: Invalid phone number format"
}
200 - Test completed (check status field in response)VoicePact SMS Test - HH:MM:SS
AT_USERNAME=sandbox
AT_API_KEY=your_sandbox_api_key
sms.py:142-161
SMS service not available error
.env file has AT_API_KEY setInvalid phone number format
+2547123456780712345678 or 712345678Message not received on phone