API docs
One request checks one phone number and returns JSON. Create a key in your dashboard under API keys.
Check a number
Send a POST to /v1/verify/phone with your key in the Authorization header. Any common format works: digits only, with punctuation, or with a leading +1.
curl https://callercheck.com/v1/verify/phone \
-H "Authorization: Bearer cc_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"phone": "(732) 555-0142"}'The response:
{
"id": "chk_0mf3k2x1a9Q7cT2LpZ4wXy",
"livemode": true,
"input": "(732) 555-0142",
"valid": true,
"e164": "+17325550142",
"national_format": "(732) 555-0142",
"country": "US",
"number_class": "geographic",
"line_type": "wireless",
"line_type_source": "block",
"original_carrier": "Example Wireless",
"ocn": "0000",
"rate_center": "FREEHOLD",
"state": "NJ",
"county": "Monmouth",
"metro": "New York-Newark-Jersey City",
"latitude": 40.26,
"longitude": -74.27,
"time_zone": "Eastern",
"observes_dst": true,
"reason_codes": ["PHONE_WIRELESS"],
"credits_used": 1
}Live keys and test keys
Keys that start with cc_live_ return real data and use 1 credit per call. Keys that start with cc_test_ cost nothing. They check the format of the number for real, then fill the data fields with sample values, so you can build and test without spending credits.
A key is shown once, when you create it. Store it somewhere safe. If one leaks, revoke it in the dashboard and create a new one.
Response fields
| Field | Type | Meaning |
|---|---|---|
id | string | ID of this check. Fetch it again at /v1/checks/{id}. |
livemode | boolean | false when a test key was used. Test results are sample data. |
input | string | The value you sent. |
valid | boolean | true when the number is a valid US or Canadian number. |
e164 | string or null | The number in +1XXXXXXXXXX form. |
national_format | string or null | The number as (XXX) XXX-XXXX. |
country | string or null | US or CA. |
number_class | string | geographic, toll_free, premium, fictional or unknown. |
line_type | string or null | wireless, landline, voip, pager, toll_free or unknown. From block data, so it is the likely type. |
line_type_source | string or null | block today. live once current-carrier lookups are added. |
original_carrier | string or null | The carrier the block was issued to. |
ocn | string or null | That carrier's operating company number. |
rate_center | string or null | The local exchange area the number is based in. |
state | string or null | Two-letter state or province. |
county | string or null | County, where known. |
metro | string or null | Metro area, where known. |
latitude, longitude | number or null | Approximate location of the exchange, not of the phone. |
time_zone | string or null | Time zone of the exchange. |
observes_dst | boolean or null | Whether that area observes daylight saving time. |
reason_codes | array of strings | Stable codes that explain the result. See the list below. |
credits_used | number | Credits charged for this call. |
Reason codes
Reason codes do not change once published, so it is safe to write logic against them. New codes may be added over time.
| Code | Meaning |
|---|---|
PHONE_INVALID_FORMAT | The input could not be read as a phone number. |
PHONE_INVALID_NUMBER | The number is not a valid, assignable number. |
PHONE_NOT_NANP | The number is outside the North American Numbering Plan. |
PHONE_UNSUPPORTED_REGION | The number is in a region this service does not cover yet. |
PHONE_FICTIONAL | The number is in a range reserved for fiction (555-0100 to 555-0199). |
PHONE_TOLL_FREE | The number is toll-free (800, 833, 844, 855, 866, 877, 888). |
PHONE_PREMIUM_RATE | The number is a premium-rate (900) number. |
PHONE_PREFIX_UNKNOWN | No block-level record was found for this area code and prefix. |
PHONE_WIRELESS | The number is likely wireless. |
PHONE_LANDLINE | The number is likely a landline. |
PHONE_VOIP | The number is likely VoIP. |
PHONE_LINE_TYPE_UNKNOWN | The line type could not be determined. |
PHONE_PORTED | The number has been ported away from its original carrier. |
PHONE_SPAM_REPORTED | Spam evidence was reported for this number. |
PHONE_CNAM_UNAVAILABLE | No caller name was available for this number. |
VENDOR_UNAVAILABLE | A live data source did not answer. The result may be partial. |
Other endpoints
| Request | What it does |
|---|---|
GET /v1/checks/{id} | Returns a check you made earlier. Free. The phone number itself is not stored, so input and e164 come back empty. |
GET /v1/checks?limit=20 | Lists your most recent checks, newest first. Up to 100 at a time. |
GET /v1/account | Returns your credit balance. |
Errors
Errors come back as JSON with a code and a plain message.
{ "error": { "code": "insufficient_credits", "message": "Your balance is too low for this request." } }| Status | Code | When |
|---|---|---|
| 400 | invalid_request | The body is not JSON or has no phone value. |
| 401 | unauthorized | The key is missing, wrong or revoked. |
| 402 | insufficient_credits | The balance is too low. Nothing was charged. |
| 422 | check_unavailable | You asked for a check that is not offered yet. |
A number that is not valid is not an error. The request succeeds with "valid": false and a reason code.
List uploads
Lists are uploaded in the dashboard for now. The result file keeps your columns and adds these: cc_valid, cc_e164, cc_line_type, cc_original_carrier, cc_rate_center, cc_state, cc_county, cc_country, cc_time_zone, cc_reason_codes.
Fair use
Results describe phone numbers, not people. Do not use them for credit, employment, tenant or insurance decisions, and do not use CallerCheck to call or text people who have not agreed to it.