validate
Carrier lookup
Current network and line type. Live porting data needs an upstream carrier feed.
1 credit
- Billing
- Per lookup
- Implementation
- Computed in Klaris
- GDPR
- Network data
- Request fields
phone_number
POST /api/v1/carrier-lookupcurl -X POST "$KLARIS_URL/api/v1/carrier-lookup" \
-H "Authorization: Bearer $KLARIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"phone_number": "+34600111222"
}'const payload = {
phone_number: "+34600111222",
};
const res = await fetch(`${process.env.KLARIS_URL}/api/v1/carrier-lookup`, {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.KLARIS_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify(payload),
});import os
import requests
payload = {
"phone_number": "+34600111222"
}
requests.post(
f"{os.environ['KLARIS_URL']}/api/v1/carrier-lookup",
headers={"Authorization": f"Bearer {os.environ['KLARIS_API_KEY']}"},
json=payload,
)Set KLARIS_URL to your Klaris origin and KLARIS_API_KEY to a live key.