Get a phone number's line type
POST
/v1/phone/type
const url = 'https://api.validationcheck.net/v1/phone/type';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"phone":"+1 415 555 2671","country":"US","bypass_cache":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.validationcheck.net/v1/phone/type \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "phone": "+1 415 555 2671", "country": "US", "bypass_cache": true }'Line type from the numbering plan, without a live lookup. 1 credit, always billed.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
phone
required
string
Example
+1 415 555 2671country
ISO 3166 alpha-2 country for numbers without a + prefix.
string | null
Example
USbypass_cache
Skip the 7-day result cache and run a fresh, billed lookup.
boolean | null
Responses
Section titled “Responses”Lookup result
Media typeapplication/json
object
success
required
boolean
data
required
object
request
required
object
id
required
string
type
required
string
input
timestamp
required
string
processing_time_ms
required
integer
metadata
required
object
api_version
required
string
credits_used
required
integer
credits_remaining
required
Null in test mode.
integer | null
cache_hit
required
boolean
test_mode
required
boolean
data_sources
required
Array<string>
verdict
required
object
status
required
string
reason
required
string
risk
required
object
score
required
integer
level
required
string
factors
required
Array<string>
confidence
required
string
details
required
object
e164
required
string | null
country
required
string | null
valid
required
boolean
line_type
required
string
numbering_plan_type
required
string | null
recommendation
required
object
action
required
string
message
required
string
key
additional properties
partial
required
A data source timed out or failed; some fields are null.
boolean
Example
{ "success": true, "data": { "metadata": { "api_version": "1" }, "risk": { "level": "low", "confidence": "low" }, "details": { "line_type": "mobile" }, "recommendation": { "action": "approve" } }}Error
Media typeapplication/json
object
success
required
boolean
error
required
object
code
required
string
message
required
string
docs_url
required
string format: uri
request_id
required
string
Example
{ "success": false, "error": { "code": "INVALID_REQUEST" }}Error
Media typeapplication/json
object
success
required
boolean
error
required
object
code
required
string
message
required
string
docs_url
required
string format: uri
request_id
required
string
Example
{ "success": false, "error": { "code": "INVALID_REQUEST" }}Error
Media typeapplication/json
object
success
required
boolean
error
required
object
code
required
string
message
required
string
docs_url
required
string format: uri
request_id
required
string
Example
{ "success": false, "error": { "code": "INVALID_REQUEST" }}Error
Media typeapplication/json
object
success
required
boolean
error
required
object
code
required
string
message
required
string
docs_url
required
string format: uri
request_id
required
string
Example
{ "success": false, "error": { "code": "INVALID_REQUEST" }}Error
Media typeapplication/json
object
success
required
boolean
error
required
object
code
required
string
message
required
string
docs_url
required
string format: uri
request_id
required
string
Example
{ "success": false, "error": { "code": "INVALID_REQUEST" }}Error
Media typeapplication/json
object
success
required
boolean
error
required
object
code
required
string
message
required
string
docs_url
required
string format: uri
request_id
required
string
Example
{ "success": false, "error": { "code": "INVALID_REQUEST" }}Error
Media typeapplication/json
object
success
required
boolean
error
required
object
code
required
string
message
required
string
docs_url
required
string format: uri
request_id
required
string
Example
{ "success": false, "error": { "code": "INVALID_REQUEST" }}Error
Media typeapplication/json
object
success
required
boolean
error
required
object
code
required
string
message
required
string
docs_url
required
string format: uri
request_id
required
string
Example
{ "success": false, "error": { "code": "INVALID_REQUEST" }}