Validate a number
Changed onValidates a single phone number and returns line type, carrier, portability, and reachability details. The response's error_code is a per-number result code (000 success; 013 internal error; 021 invalid format; 041 remote timeout; 042 remote query failed; 091 insufficient funds) — distinct from the HTTP status codes below.
Request
- Base URLhttps://api.wavix.com
- URLhttps://api.wavix.com/v1/validation
- AuthHTTP bearer
Query parameters
The phone number to validate, in E.164 format with or without the leading +.
Depth of validation to perform on the phone number. One of format (checks number syntax only), analysis (returns number metadata such as type and country), or validation (performs a live network lookup of the number's current status).
Depth of validation to perform. Accepts a PhoneNumberValidationType value.
Response
Returns the phone number validation details.
Example response
{
"phone_number": "971569483322",
"valid": true,
"country_code": "AE",
"e164_format": "+971569483322",
"national_format": "056 948 3322",
"mcc": "424",
"mnc": "004",
"number_type": "mobile",
"carrier_name": "Etisalat",
"reachable": true,
"timezone": "UTC+04:00",
"charge": "0.015",
"error_code": "000"
}Changes
- breaking
the
queryrequest parametertypewas restricted to a list of enum values - info
added the new enum value
analysisto thequeryrequest parametertype - info
added the new enum value
formatto thequeryrequest parametertype - info
added the new enum value
validationto thequeryrequest parametertype - info
for the
queryrequest parametertype, the type was generalized from no type tostring
- breaking
- breaking
the response's body type changed from no type to
objectfor status - info
removed
subschema #2from the response bodyallOflist for the response status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking