Phone Number Format Validation

This is a free endpoint and will let you know if the phone number matches the format of the country you pass through in the countryCode parameter

circle-info

If you want to make sure the phone number is active/live then use this endpoint

Endpoint

[POST] https://usenotifier.com/api/validate

Example Request

$response = Http::withToken('YOUR_API_KEY')
               ->post('https://usenotifier.com/api/validate', [
                  "phoneNumber" => "07700900389",
                  "countryCode" => "GB"
                ]);
circle-info

Read the Authentication docs to get your API KEY

phoneNumber: required

The phone number to validate. Don't worry about formatting, you can leave that to us!

countryCode: required

The 2 character ISO 3166 country code you want to validate the phone number against. Get a list of valid codes.arrow-up-right

Example Response

The type of phone will be given, with the options being:

  • FIXED_LINE

  • MOBILE

  • FIXED_LINE_OR_MOBILE

  • TOLL_FREE

  • PREMIUM_RATE

  • SHARED_COST

  • VOIP

  • PERSONAL_NUMBER

  • PAGER

  • UAN

  • UNKNOWN

  • EMERGENCY

  • VOICEMAIL

  • SHORT_CODE

  • STANDARD_RATE

Last updated