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

ParameterDefaultDescriptionTest Value
key

Your unique licence key (find on Portal credentials)

Required string

secret

Your unique secret key (find on Portal credentials). This required when calling API endpoints without a referer.

Optional string

formatjson

The required format of the response.

Optional string

phone_number

The phone number to be verified.

Required string

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.

Optional string

default_country_code

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

Required string

mobile_only

Require that the supplied number is a mobile phone.

Optional boolean

timeout

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

Optional number

allowed_country_codes

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

Optional string

Responses

200 OK

NameTypeDescriptionExample
is_verifiedbooleanIndicates if the phone number is verified.true
line_typestringThe type of phone line the number is connected to.mobile
line_statusstringThe connection status of the supplied number.connected
line_status_reasonstringInsights of the line_status result.false
country_codestringThe two character ISO code of the country of the phone number.AU
calling_codestringThe country calling code of the phone number.61
raw_nationalstringThe national phone number without any whitespace or punctuation.0285038000
formatted_nationalstringThe formatted national phone number including country-specific whitespace and punctuation.(02) 8503 8000
raw_internationalstringThe international phone number in E.164 format.61285038000
formatted_internationalstringThe formatted international phone number including country-specific whitespace.+61 2 8503 8000
not_verified_codestringA code indicating why the number did not verify.LINE_DISCONNECTED
not_verified_reasonstringIf the number did not verify, this will contain a short description of the failure reason.Phone number is not connected
successbooleanIndicates if the request was successful or nottrue

400 Bad request

NameTypeDescriptionExample
completionsarrayAn empty array will be returned due to the error-
error_codestringA unique numerical value identifying the error that occured1004
messagestringAn informative message describing the error that occuredSecret not provided
successbooleanIndicates if the request was successful or notfalse

See API Error Reference for details.