The phone verification API is currently in a beta state. It can be used in production but may be adjusted and improved. Please let us know if you wish to use the service so that we can keep you up-to-date on any changes being made.
The Phone Verification API acts to verify a supplied number through a process which involves syntax and range checks prior to a network check for a connection status. The API returns the verified number, line type, connection status and other metadata.
Response Specification
The API response will include all the attributes associated with the email address in the format requested in the API request.
Field Name | Type | Description | Example |
---|---|---|---|
success
|
Boolean | Indicates if the request was successful. | true |
is_verified
|
Boolean | Indicates if the phone number is verified. | true |
line_type
|
String | The type of phone line the number is connected to. | mobile |
line_status
|
String | The connection status of the supplied number. | connected |
line_status_reason
|
String | Insights of the line_status result. |
timeout |
country_code
|
String | The two character ISO code of the country of the phone number. | AU |
calling_code
|
String | The country calling code of the phone number. | 61 |
raw_national
|
String | The national phone number without any whitespace or punctuation. | 0285038000 |
formatted_national
|
String | The formatted national phone number including country-specific whitespace and punctuation. | (02) 8503 8000 |
raw_international
|
String | The international phone number in E.164 format. | +61285038000 |
formatted_international
|
String | The formatted international phone number including country-specific whitespace. | +61 2 8503 8000 |
not_verified_code
|
String | A code indicating why the number did not verify. | LINE_DISCONNECTED |
not_verified_reason
|
String | If the number did not verify, this will contain a short description of the failure reason. | Phone number is not connected |
Errors
Below are the possible errors that can be returned by the API.
- Validation error (1000)
- Key not found (1001)
- Key not provided (1002)
- Domain not registered with Addressfinder (1003)
- Secret not provided (1004)
- Direct API calls are not permitted on your current plan. (1005)
- Invalid credentials (1006)
- Secret should not be supplied (1008)
- The address autocomplete feature is unavailable as it has exceeded the number of free lookups. Please contact the website owner (1009)
- The record you are trying to load does not exist (1011)
- Domain parameter must not be included in a web request (1015)
- This domain has been blocked (1016)
- This service is not enabled on your current plan (1017)
- Your IP address has been blocked for these credentials (1018)
- HTTP Referer or Origin header record must be present when making a browser initiated request (1019)
- Your Addressfinder trial has ended (1020)
- Your Addressfinder trial has exceeded its allowed lookups (1021)
- Postal addresses are not enabled on your current plan (1022)
- Your Addressfinder plan is paused (1023)