{
"phone_number": "+255614853618"
}
{
"success": true,
"valid": true,
"formatted": "+255614853618",
"country": "Tanzania",
"country_code": "TZ"
}
SMS Operations
Validate Phone Number
POST
/
api
/
messaging
/
sms
/
validate-phone
/
{
"phone_number": "+255614853618"
}
{
"success": true,
"valid": true,
"formatted": "+255614853618",
"country": "Tanzania",
"country_code": "TZ"
}
Validate and format a phone number.
string
required
Phone number to validate
Request Example
{
"phone_number": "+255614853618"
}
Success Response (200)
boolean
Operation success status
boolean
Whether phone number is valid
string
Formatted phone number in E.164 format
string
Country name
string
Country code
{
"success": true,
"valid": true,
"formatted": "+255614853618",
"country": "Tanzania",
"country_code": "TZ"
}