curl --request POST \
--url https://app.spotzee.com/api/ext/generic/sms/phone-mobile-syntax-validator \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'phone=+1-555-123-4567'{
"status": "success",
"data": {
"isValid": true,
"phoneNumber": "+15551234567",
"countryIso2": "US",
"countryIso3": "USA",
"countryCode": "+1"
}
}Validates and analyzes mobile phone numbers from any country. Checks syntax validity, formats to international standard (E.164), identifies country and carrier information, and determines line type. Supports various input formats including national and international notations.
curl --request POST \
--url https://app.spotzee.com/api/ext/generic/sms/phone-mobile-syntax-validator \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'phone=+1-555-123-4567'{
"status": "success",
"data": {
"isValid": true,
"phoneNumber": "+15551234567",
"countryIso2": "US",
"countryIso3": "USA",
"countryCode": "+1"
}
}Bearer token authentication. Use format: Bearer YOUR_API_KEY
Phone number to validate. Can include country code and formatting characters.
^[\+]?[0-9\s\-\(\)]+$"+1-555-123-4567"
Successfully validated phone number
"success"
Hide child attributes
Whether the phone number is valid
true
Formatted phone number in E.164 format (only if valid)
"+15551234567"
ISO 3166-1 alpha-2 country code
"US"
ISO 3166-1 alpha-3 country code
"USA"
Country calling code
"+1"
{
"isValid": true,
"phoneNumber": "+15551234567",
"countryIso2": "US",
"countryIso3": "USA",
"countryCode": "+1"
}
Was this page helpful?