Phone Number Validation
GET/phone_numbers
Query for and validate phone numbers.
Request
Query Parameters
API Key
Your unique identifier that allows access to our APIs.
Begins ak_
. Available from your dashboard
Specifies the phone number to validate. Phone number must include a country code in acceptable format. For instance, UK phone numbers should be suffixed +44
, 44
or 0044
.
Possible values: [true
]
When set to true
the current network of the phone number will be retrieved and populated.
Note that this operation is potentially slow depending on the network and local conditions.
A comma separated list of tags to query over.
Useful if you want to specify the circumstances in which the request was made.
If multiple tags are specified, the response will only comprise of requests for which all the tags are satisfied - i.e. searching "foo,bar"
will only query requests which tagged both "foo"
and "bar"
.
Responses
- 200
- 400
- 401
- 429
Success
- application/json
- Schema
- Example (from schema)
- Valid Phone Number
Schema
- Phone Number Object
- Invalid Phone Number Object
Possible values: [2000
]
Possible values: [Success
]
result object required
Possible values: [true
]
Phone number formatted to local standard
Phone number formatted to international standard
Country code in 3 letter ISO format
Country code in 2 letter ISO format
Full country name
current_carrier objectnullablerequired
Representation of current phone carrier information like network code, name, country, network type
The Mobile Country Code for the carrier.
The full name of the carrier that number is associated with.
Country that number is associated with. In ISO 3166-1 alpha-2 format.
Possible values: [mobile
, landline
, landline_premium
, landline_tollfree
, virtual
, unknown
, pager
, mobile_or_landline
, shared_cost
, uan
, voicemail
]
Type of network that number is associated with.
original_carrier objectnullablerequired
Representation of original phone carrier information like network code, name, country, network type
The Mobile Country Code for the carrier.
The full name of the carrier that number is associated with.
Country that number is associated with. In ISO 3166-1 alpha-2 format.
Possible values: [mobile
, landline
, landline_premium
, landline_tollfree
, virtual
, unknown
, pager
, mobile_or_landline
, shared_cost
, uan
, voicemail
]
Type of network that number is associated with.
Possible values: [false
]
Possible values: [null
]
Phone number formatted to local standard
Possible values: [null
]
Phone number formatted to international standard
Possible values: [null
]
Country code in 3 letter ISO format
Possible values: [null
]
Country code in 2 letter ISO format
Possible values: [null
]
Full country name
Possible values: [null
]
Representation of current phone carrier information like network code, name, country, network type
Possible values: [null
]
Representation of original phone carrier information like network code, name, country, network type
{
"result": {
"valid": true,
"national_format": "020 7112 8019",
"international_format": "+44 20 7112 8019",
"iso_country": "GBR",
"iso_country_2": "GB",
"country": "United Kingdom",
"current_carrier": {
"network_code": null,
"name": "Invomo Ltd",
"country": "GB",
"network_type": "landline"
},
"original_carrier": {
"network_code": null,
"name": "Invomo Ltd",
"country": "GB",
"network_type": "landline"
}
},
"code": 2000,
"message": "Success"
}
{
"result": {
"valid": true,
"national_format": "020 7112 8019",
"international_format": "+44 20 7112 8019",
"iso_country": "GBR",
"iso_country_2": "GB",
"country": "United Kingdom",
"current_carrier": {
"network_code": null,
"name": "Invomo Ltd",
"country": "GB",
"network_type": "landline"
},
"original_carrier": {
"network_code": null,
"name": "Invomo Ltd",
"country": "GB",
"network_type": "landline"
}
},
"code": 2000,
"message": "Success"
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
API Response Code. Non 2xxx
code indicates a failure. This code will provide a more specific reason when a failure occurs and facilitates debugging.
Human readable error message supplied with every error response.
errors object[]
Indicates location of error in request query or URL parameter
Indicates location of error in request query or URL parameter
{
"code": 0,
"message": "string",
"errors": [
{
"message": "should have required property 'type'",
"path": ".query.type",
"errorCode": "required.openapi.validation"
}
]
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
API Response Code. Non 2xxx
code indicates a failure. This code will provide a more specific reason when a failure occurs and facilitates debugging.
Human readable error message supplied with every error response.
{
"code": 0,
"message": "string"
}
Rate Limit Timeout
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
API Response Code. Non 2xxx
code indicates a failure. This code will provide a more specific reason when a failure occurs and facilitates debugging.
Human readable error message supplied with every error response.
errors object[]
Indicates location of error in request query or URL parameter
Indicates location of error in request query or URL parameter
{
"code": 0,
"message": "string",
"errors": [
{
"message": "should have required property 'type'",
"path": ".query.type",
"errorCode": "required.openapi.validation"
}
]
}