Skip to main content

Phone Verification API

The Phone Verification API verifies a supplied number through a process which involves syntax and range checks prior to a network check for a connection status.

Endpoint

Global

https://api.addressfinder.io/api/phone/v1/verification

Parameters

ParameterDescriptionTest Value
key

Your unique licence key (find on Portal credentials)


Type: string required
secret

Your unique secret key from Portal Credentials. You can also pass your secret key into the Authorization header of the request. Only required for server-to-server calls.


Type: string
format

The required format of the response.


Default value: json
Type: string
phone_number

The phone number to be verified.


Type: string required
domain

Used to identify which of your services is calling the API for activity monitoring purposes. This domain needs to be registered in the portal.


Type: string
default_country_code

The iso2 country code to be used by default when the phone number does not include a country calling code.


Type: string required
mobile_only

Require that the supplied number is a mobile phone.


Type: boolean
timeout

Maximum wait time permitted when verifying the number. If exceeded, will return a status of indeterminate.


Type: number
allowed_country_codes

Require that the supplied phone number is registered in one of these supplied countries (comma separated using iso2 codes).


Type: string

Responses

200 OK

NameDescriptionExample
is_verifiedIndicates if the phone number is verified.

Type: boolean
true
line_typeThe type of phone line the number is connected to.

Type: string
mobile
line_statusThe connection status of the supplied number.

Type: string
connected
line_status_reasonInsights of the line_status result.

Type: string
false
country_codeThe two character ISO code of the country of the phone number.

Type: string
AU
calling_codeThe country calling code of the phone number.

Type: string
61
raw_nationalThe national phone number without any whitespace or punctuation.

Type: string
0285038000
formatted_nationalThe formatted national phone number including country-specific whitespace and punctuation.

Type: string
(02) 8503 8000
raw_internationalThe international phone number in E.164 format.

Type: string
61285038000
formatted_internationalThe formatted international phone number including country-specific whitespace.

Type: string
+61 2 8503 8000
not_verified_codeA code indicating why the number did not verify.

Type: string
LINE_DISCONNECTED
not_verified_reasonIf the number did not verify, this will contain a short description of the failure reason.

Type: string
Phone number is not connected
successIndicates if the request was successful or not

Type: boolean
true

400 Bad request

NameDescriptionExample
completionsAn empty array will be returned due to the error

Type: array
-
error_codeA unique numerical value identifying the error that occured

Type: string
1004
messageAn informative message describing the error that occured

Type: string
Secret not provided
successIndicates if the request was successful or not

Type: boolean
false

See API Error Reference for details.