Validation · API
Phone Validation
Validate a phone number and return its country, carrier and line type in E.164.
POST /v1/validate/phone
POST /v1/validate/phone
200 OK
{ "phone": "+14155552671", "valid": true, "country_code": "US", "carrier": "Verizon", "line_type": "mobile" }
Capabilities
Why teams use it
Carrier & line type
Know the carrier and whether it’s mobile, landline or VoIP.
E.164 normalization
Clean, storable numbers every time.
Global validation
Numbering plans for every country.
Fraud signals
Catch invalid and high-risk numbers early.
Request
Call it in your language
curl -X POST https://api.locanium.com/v1/validate/phone \ -H "Authorization: Bearer sk_live_..." \ -H "Content-Type: application/json" \ -d '{"phone":"+14155552671"}'
Response
What you get back
- Whether the number is valid
validboolean - ISO country code
country_codestring - Carrier name
carrierstring - mobile / landline / voip
line_typestring - Normalized E.164 format
e164string
Use cases
What you can build
Account security
Verify numbers before SMS and 2FA.
Data hygiene
Normalize to E.164 and detect line type.
Routing
Route by carrier and country.
Validation family
Full parameters, errors and code samples are in the API reference.