Skip to main content
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.
phone_number
string
required
Phone number to validate

Request Example

{
  "phone_number": "+255614853618"
}

Success Response (200)

success
boolean
Operation success status
valid
boolean
Whether phone number is valid
formatted
string
Formatted phone number in E.164 format
country
string
Country name
country_code
string
Country code
{
  "success": true,
  "valid": true,
  "formatted": "+255614853618",
  "country": "Tanzania",
  "country_code": "TZ"
}