Skip to main content
POST
Phone Validity tells you whether a number is real and dialable, with a one-line reason. Use it to reject fake numbers at sign-up. POST /api/lookup/phone/validity Requires an Encrata API key in the Authorization header.

Request

string
required
The phone number in E.164 format, for example +14155552671. You can send it as query instead. See Send the number in E.164 format.

Example request

How the status is decided

The checks run in this order. The first match wins.

Response

The lookup is in result. message is Phone validity ready.
string
The number as the data source returned it.
string
valid, risky, invalid, or unknown. See How the status is decided.
string
One sentence that explains status, for example Active, dialable number or Valid but voip number. Safe to show to users.
string[]
Short labels you can show as tags: VoIP number, Disposable / temporary number, SMS-capable, and the line type followed by line (for example mobile line). Left out when empty.
string
The line type, for example mobile or landline. Left out when unknown.
string
The carrier name. Left out when unknown.
string
The country name. Left out when unknown.
string
State or region. Left out when unknown.
string
City. Left out when unknown.
string
IANA time zone. Left out when unknown.
string
The country dialling code, for example +1. Left out when unknown.
string
The number in international format. Left out when unknown.
boolean
true for a VoIP line. For a dedicated VoIP check, use Phone VoIP.
boolean
true when the number has a known SMS gateway.
string
Line status, for example active. Left out when unknown.
number
Credits charged: 1 on your first validity check of this number, 0 for a repeat within 6 months.
boolean
true when the report came from Encrata’s cache instead of a live check. It isn’t a billing signal: a cached result still costs 1 credit the first time. Left out when false.

Errors

See Phone Lookup errors. Validity adds no other cases.

Credits

Each check costs 1 credit. Checking the same number again within 6 months is free (credits: 0). The window is shared by your workspace. See Credits.