Validation

Validate and format a phone number

Validates an international phone number and returns it in E.164 and international formats, with its country and type (mobile, fixed line...). Give country (2-letter code) for numbers without the + prefix.

Costs 1 credit per call.

post/validate-phone

Request

  • Base URL: https://api.cofferdock.com
  • URL: https://api.cofferdock.com/validate-phone
  • Auth: API key in header x-api-key

Request body

phonestring required

The phone number to validate. Use the international format with the country code, e.g. "+34600000000".

countrystring

ISO 3166-1 alpha-2, e.g. "ES", "GB".

Response

Result.

successboolean
validboolean
countrystring nullable
typestring nullable
formatted_e164string nullable
formatted_internationalstring nullable

Changes

No recorded changes to this operation across all 1 revision of this API.