curl --request GET \
--url https://api.example.com/api/v1/sms/status{
"service": "<string>",
"username": "<string>",
"api_key_set": true,
"service_available": true,
"message": "<string>",
"timestamp": "<string>"
}Check the availability and configuration of the SMS service
curl --request GET \
--url https://api.example.com/api/v1/sms/status{
"service": "<string>",
"username": "<string>",
"api_key_set": true,
"service_available": true,
"message": "<string>",
"timestamp": "<string>"
}curl http://localhost:8000/api/v1/sms/status
{
"service": "SMS",
"username": "sandbox",
"api_key_set": true,
"service_available": true,
"message": "SMS service ready",
"timestamp": "2024-01-15T10:30:00.000Z"
}
{
"service": "SMS",
"username": "sandbox",
"api_key_set": false,
"service_available": false,
"message": "SMS service unavailable - check API credentials",
"timestamp": "2024-01-15T10:30:00.000Z"
}
{
"service": "SMS",
"status": "error",
"message": "Configuration error: AT_USERNAME not set",
"timestamp": "2024-01-15T10:30:00.000Z"
}
200 - Status check completed (service may or may not be available)AT_USERNAME environment variable is setAT_API_KEY environment variable is set and valid (length > 10)sms.py:263-290
service_available is false
AT_API_KEY environment variable with your Africa’s Talking API keyexport AT_API_KEY=your_api_key_here
api_key_set is false
.env file:AT_API_KEY=your_sandbox_or_production_key
username is empty or 'None'
.env file:AT_USERNAME=sandbox