Validate phone (Loqate)
Validates and normalizes a phone number, including country, national format, and provider characteristics when available.
Vue d’ensemble
Validates and normalizes a phone number, including country, national format, and provider characteristics when available.
Exemple
Normalize a number before sending an SMS OTP.
Decision routes
validValide
Loqate considers the data valid.
Recommended actionContinue with the normalized value.
invalidInvalide
Loqate considers the data invalid.
Recommended actionRequest a correction before continuing.
unknownIndeterminate
Loqate cannot produce a reliable conclusion.
Recommended actionDo not treat this result as valid by default.
Parameters 2
extension_config_id
Extension configuration used for this operation.
phone_number
Phone number to validate and normalize.
Outputs 8
selected_route
Business route chosen from the validation result.
valid
Whether Loqate considers the validated data valid.
phone_number
Normalized phone number when usable.
national_format
National format of the number returned by Loqate.
country
Country resolved for the number.
number_type
Number type detected by Loqate.
network_name
Network or carrier returned when available.
result
Normalized Loqate response for the performed validation.
Behavior
Loqate interprets the supplied number, returns its normalized form, and routes according to the check result.
Limits and responsibilities
- A valid number does not prove that the user controls it; an OTP step is still required for that proof.
- Network information may not be available in every country.