LineDevelopers

Validate and classify a number

GET/api/v1/lookups/{phoneNumber}

Free. Returns validity, country, formats, line type and whether it can receive SMS. With opt_outs.read, also whether it has opted out.

Bearer key, test or live

Parameters

phoneNumberstring · e164pathrequired

Responses

200The lookup result.
Plus 400, 401, 403, 429, 503. See Errors.
curl -X GET 'https://staging.useline.io/api/v1/lookups/+447700900456' \
  -H "Authorization: Bearer $LINE_API_KEY"