API Reference · Platform export
Phone Verification API Reference
Restricted API reference — workspace-admin access only. These operations are not part of the general public API offer or headline endpoint count.
What it does
Validate and risk-score a phone number in real time: line status, carrier, line type (mobile, landline, VoIP, prepaid), geography, do-not-call status and an abuse/fraud risk score.
Use cases
- Block fake or high-risk numbers at signup before they consume trial resources.
- Scrub a dialing list for invalid, VoIP and do-not-call numbers before an SMS or calling campaign.
- Confirm mobile reachability so SMS steps only fire on numbers that can receive them.
Parameters
| Parameter | Type | Description |
|---|---|---|
phone | string | Required. Phone number to verify. E.164 recommended (e.g. "+14155552671"). Alias: phone_number. |
first_name | string | Optional. First name to verify against the identity we hold for this number. |
last_name | string | Optional. Last name to verify against the identity we hold for this number. |
full_name | string | Optional. Full name alternative to first_name/last_name. Aliases: fullName, name. |
email | string | Optional. Single email to test for a link to this phone. |
emails | string[] | Optional. Multiple emails to test. Each one is scored separately — we can hold several emails per phone. |
country | string | Optional ISO 2-letter country hint for local-format numbers (e.g. "US"). |
strictness | integer | Optional 0–2. Higher values apply stricter risk rules and flag more numbers as risky. |
Response Schema
Complete documented fields for this section, with nested notation preserved. Endpoint-specific envelopes, availability and additional fields are described under each endpoint below.
| Field | Notes |
|---|---|
| score (0–100 identity confidence) | |
| verdict (verified, likely, unconfirmed, mismatch, invalid) | |
| reasons[] (plain-language drivers behind the score) | |
| status (valid, risky, invalid) | |
| is_mobile (true, false, null when undetermined) | |
| phone | |
| e164 | |
| local_format | |
| dialing_code | |
| valid | |
| active | |
| risk_score | |
| recent_abuse | |
| do_not_call | |
| line_type | |
| carrier | |
| is_voip | |
| is_prepaid | |
| is_risky | |
| leaked | |
| spammer | |
| name | |
| country | |
| region | |
| city | |
| timezone | |
| identity.name | |
| identity.name_source (bytemine, carrier, both) | |
| identity.emails_on_file[] | |
| identity.bytemine_match | |
| match.name { provided, result, matched_against, source } | |
| match.emails[] { email, result (exact, domain, no_match), source } | |
| match.any_email_match | |
| credits_used |
Illustrative Example Response (synthetic, not a complete endpoint schema):
{
"data": {
"score": 0,
"verdict": "string",
"reasons[]": "string",
"status": "string",
"is_mobile": false,
"phone": "+14155551234",
"e164": "string",
"local_format": "string",
"dialing_code": "string",
"valid": "string",
"active": "string",
"risk_score": 0,
"recent_abuse": "string",
"do_not_call": "string",
"line_type": "string",
"carrier": "string",
"is_voip": false,
"is_prepaid": false,
"is_risky": false,
"leaked": "string",
"spammer": "string",
"name": "string",
"country": 0,
"region": "string",
"city": "string",
"timezone": "string",
"identity.name": "string",
"identity.name_source": "string",
"identity.emails_on_file[]": "user@example.com",
"identity.bytemine_match": "string",
"match.name { provided, result, matched_against, source }": "string",
"match.emails[] { email, result (exact, domain, no_match), source }": "user@example.com",
"match.any_email_match": "user@example.com",
"credits_used": "string"
}
}
POST /phone/verify — Verify Phone Number & Identity
Real-time phone validation, mobile detection and identity verification in one call. Validates the number (valid, active, line type, carrier, geography, do-not-call, VoIP/prepaid, 0–100 abuse risk), then cross-checks the number against Bytemine's own contact data to return the name and every email we hold for that phone. Supplied names and emails are matched against both sources and rolled into a 0–100 confidence score with a verdict and a reasons array. Name matching tolerates initials, reversed order, accents and suffixes; email matching ignores case, +tags and Gmail dots, and reports same-corporate-domain matches separately. Mobile status combines the carrier line type with our own record. Costs 10 credits per request, charged only on a 200; invalid input (400), insufficient credits (402) and upstream failures (502) are free. Reverse-phone identity results are cached for 30 days, so repeat lookups of the same number are fast and are not re-billed upstream. Scoring: valid + active starts at 60, mobile +10, VoIP/prepaid -10, fraud or recent abuse -25, exact name match +15, partial name +7, contradicting name -20, a supplied email linked to the phone +20, same-domain-only +8, emails supplied but none linked -12. Requests with no Bytemine record are capped at 75 so they can never come back as "verified". Verdict thresholds: 85+ verified, 65–84 likely, 40–64 unconfirmed, below 40 with a contradiction mismatch.
Example Request Body:
{
"phone": "+14155552671",
"first_name": "Shaun",
"last_name": "Puckrin",
"emails": [
"shaun@acme.com",
"spuckrin@gmail.com"
],
"country": "US"
}
cURL Example:
curl -X POST 'https://bvjmtgaxijpyasjtaqiv.supabase.co/functions/v1/api-gateway' \
-H 'Content-Type: application/json' \
-H 'x-amz-security-token: YOUR-API-KEY' \
-d '{
"path": "/phone/verify",
"method": "POST",
"body": {
"phone": "+14155552671",
"first_name": "Shaun",
"last_name": "Puckrin",
"emails": [
"shaun@acme.com",
"spuckrin@gmail.com"
],
"country": "US"
}
}'