Look up detailed information about a phone number
/v1/telco/lookup/{tn}Returns carrier, location, and inventory data for a phone number.
tnstringrequiredtnstringcurl "https://api.do.dev/v1/telco/lookup/2125551234" \
-H "Authorization: Bearer YOUR_API_KEY"{
"tn": "2125551234",
"npa": "212",
"nxx": "555",
"nxxx": "1234",
"carrier": {
"ocn": "VZXX",
"name": "Verizon Communications",
"type": "ILEC"
},
"location": {
"rateCenter": "NEW YORK",
"state": "NY",
"country": "US"
},
"inventory": {
"division": "...",
"provider": "...",
"active": true,
"smsEnabled": true,
"lidbEnabled": false
}
}{
"error": "bad_request",
"message": "Invalid phone number format"
}