REST endpoints. JSON in, JSON out. Authenticated by x-api-key header. Every call costs 1 credit.
Grab your key from the dashboard and send it on every request.
curl -H "x-api-key: ls_live_xxx" \
-H "Content-Type: application/json" \
-d '{"phone":"+41 44 668 18 00"}' \
https://your-domain.com/api/validate/phoneValidates phone format, type, country & assigns a risk score.
{ "phone": "+41 44 668 18 00" }{
"valid": true,
"type": "FIXED_LINE",
"country": "CH",
"risk_score": 4.2,
"formatted": "+41 44 668 18 00",
"credits_remaining": 99
}RFC-compliant check + disposable-domain detection + risk score.
{ "email": "hello@lookupswiss.ch" }{
"valid": true,
"disposable": false,
"deliverable": true,
"risk_score": 3.1,
"domain": "lookupswiss.ch",
"credits_remaining": 98
}401 — missing or invalid x-api-key400 — malformed request body429 — credits exhausted, upgrade your plan