Provero Logo

Phone format validation API

Is this a valid number? Structure only, no network check.

Phone format validation provides a lightweight phone validation check without requiring an HLR lookup. It returns number validity, country details, standard number formats, and assigned network data when available from number range metadata.

Endpoint

POST
https://api.provero.io/api/validate/phone-basic

Headers

Authorization:
Content-Type: application/json
Accept: application/json


Request Body

Field Type Required Description
phone string Yes The phone number to validate. Send the number with its country code, with or without a leading +, for example +447700900123 or 447700900123.
Request Payload Example (JSON)
{
    "phone": "+447700900123"
}

Request Examples

Choose language Bash (cURL) 5 examples
userPhone="REPLACE_WITH_PHONE"

curl -X POST https://api.provero.io/api/validate/phone-basic \
  -H "Authorization: Bearer REPLACE_WITH_API_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d "{\"phone\": \"$userPhone\"}"

Response Examples

Choose response example Success 4 examples
{
    "input": "+447700900123",
    "valid": true,
    "country": {
        "code": "GB",
        "name": "United Kingdom of Great Britain and Northern Ireland",
        "callingCode": "44"
    },
    "format": {
        "e164": "+447700900123",
        "international": "+44 7700 900123",
        "national": "07700 900123",
        "rfc3966": "tel:+44-7700-900123"
    },
    "assignedNetwork": "Vodafone UK"
}

Response Body

Success structure

Field Name Type Always
Returned
Example
input string Yes
valid boolean Yes
country object Yes
country.code string No
country.name string No
country.callingCode string No
format object Yes
format.e164 string No
format.international string No
format.national string No
format.rfc3966 string No
assignedNetwork string No

Error structure

Field Name Type Always
Returned
Example Description
message string No Top-level error message returned on validation failure or insufficient balance.
errors object No Object of per-field validation errors.
service string No Service alias returned with a 402 insufficient-balance response.
required_amount string No Credit amount required to process the validation request.
current_balance string No Current available balance at the time the request was rejected.