curl --request GET \
--url "https://api.trestleiq.com/3.0/phone_intel?phone=2069735100" \
--header "x-api-key: YOUR_API_KEY"
const response = await fetch(
"https://api.trestleiq.com/3.0/phone_intel?phone=2069735100",
{
headers: {
"x-api-key": "YOUR_API_KEY",
},
}
);
const data = await response.json();
import axios from "axios";
const { data } = await axios.get(
"https://api.trestleiq.com/3.0/phone_intel?phone=2069735100",
{
headers: {
"x-api-key": "YOUR_API_KEY",
},
}
);
console.log(data);
import requests
headers = {"x-api-key": "YOUR_API_KEY"}
response = requests.get(
"https://api.trestleiq.com/3.0/phone_intel",
params={"phone": "2069735100"},
headers=headers,
timeout=30,
)
data = response.json()
print(data)
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("x-api-key", "YOUR_API_KEY");
var response = await client.GetAsync("https://api.trestleiq.com/3.0/phone_intel?phone=2069735100");
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.trestleiq.com/3.0/phone_intel?phone=2069735100", nil)
req.Header.Set("x-api-key", "YOUR_API_KEY")
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}
<?php
$curl = curl_init("https://api.trestleiq.com/3.0/phone_intel?phone=2069735100");
curl_setopt($curl, CURLOPT_HTTPHEADER, ["x-api-key: YOUR_API_KEY"]);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class PhoneIntelExample {
public static void main(String[] args) throws Exception {
HttpRequest request =
HttpRequest.newBuilder()
.uri(URI.create("https://api.trestleiq.com/3.0/phone_intel?phone=2069735100"))
.header("x-api-key", "YOUR_API_KEY")
.GET()
.build();
HttpResponse<String> response =
HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
{
"id": "Phone.3dbb6fef-a2df-4b08-cfe3-bc7128b6f5b4",
"phone_number": "2069735100",
"is_valid": true,
"activity_score": 50,
"country_calling_code": "1",
"country_code": "US",
"country_name": "United States",
"line_type": "NonFixedVOIP",
"carrier": "Level 3 Communications, LLC",
"is_prepaid": false,
"add_ons": {
"litigator_checks": {
"phone.is_litigator_risk": true
}
},
"error": {
"name": "InternalError",
"message": "Could not retrieve entire response"
},
"warnings": [
"Missing Input"
]
}
curl --request GET \
--url "https://api.trestleiq.com/3.0/phone_intel?phone=2069735100" \
--header "x-api-key: YOUR_API_KEY"
const response = await fetch(
"https://api.trestleiq.com/3.0/phone_intel?phone=2069735100",
{
headers: {
"x-api-key": "YOUR_API_KEY",
},
}
);
const data = await response.json();
import axios from "axios";
const { data } = await axios.get(
"https://api.trestleiq.com/3.0/phone_intel?phone=2069735100",
{
headers: {
"x-api-key": "YOUR_API_KEY",
},
}
);
console.log(data);
import requests
headers = {"x-api-key": "YOUR_API_KEY"}
response = requests.get(
"https://api.trestleiq.com/3.0/phone_intel",
params={"phone": "2069735100"},
headers=headers,
timeout=30,
)
data = response.json()
print(data)
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("x-api-key", "YOUR_API_KEY");
var response = await client.GetAsync("https://api.trestleiq.com/3.0/phone_intel?phone=2069735100");
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.trestleiq.com/3.0/phone_intel?phone=2069735100", nil)
req.Header.Set("x-api-key", "YOUR_API_KEY")
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}
<?php
$curl = curl_init("https://api.trestleiq.com/3.0/phone_intel?phone=2069735100");
curl_setopt($curl, CURLOPT_HTTPHEADER, ["x-api-key: YOUR_API_KEY"]);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class PhoneIntelExample {
public static void main(String[] args) throws Exception {
HttpRequest request =
HttpRequest.newBuilder()
.uri(URI.create("https://api.trestleiq.com/3.0/phone_intel?phone=2069735100"))
.header("x-api-key", "YOUR_API_KEY")
.GET()
.build();
HttpResponse<String> response =
HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
{
"id": "Phone.3dbb6fef-a2df-4b08-cfe3-bc7128b6f5b4",
"phone_number": "2069735100",
"is_valid": true,
"activity_score": 50,
"country_calling_code": "1",
"country_code": "US",
"country_name": "United States",
"line_type": "NonFixedVOIP",
"carrier": "Level 3 Communications, LLC",
"is_prepaid": false,
"add_ons": {
"litigator_checks": {
"phone.is_litigator_risk": true
}
},
"error": {
"name": "InternalError",
"message": "Could not retrieve entire response"
},
"warnings": [
"Missing Input"
]
}
Phone Validation API
Phone Validation API Documentation
Phone Validation API Documentation: Integrate the phone_intel endpoint to return carrier, line type, prepaid status, and Phone Activity Score for any number.
curl --request GET \
--url "https://api.trestleiq.com/3.0/phone_intel?phone=2069735100" \
--header "x-api-key: YOUR_API_KEY"
const response = await fetch(
"https://api.trestleiq.com/3.0/phone_intel?phone=2069735100",
{
headers: {
"x-api-key": "YOUR_API_KEY",
},
}
);
const data = await response.json();
import axios from "axios";
const { data } = await axios.get(
"https://api.trestleiq.com/3.0/phone_intel?phone=2069735100",
{
headers: {
"x-api-key": "YOUR_API_KEY",
},
}
);
console.log(data);
import requests
headers = {"x-api-key": "YOUR_API_KEY"}
response = requests.get(
"https://api.trestleiq.com/3.0/phone_intel",
params={"phone": "2069735100"},
headers=headers,
timeout=30,
)
data = response.json()
print(data)
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("x-api-key", "YOUR_API_KEY");
var response = await client.GetAsync("https://api.trestleiq.com/3.0/phone_intel?phone=2069735100");
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.trestleiq.com/3.0/phone_intel?phone=2069735100", nil)
req.Header.Set("x-api-key", "YOUR_API_KEY")
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}
<?php
$curl = curl_init("https://api.trestleiq.com/3.0/phone_intel?phone=2069735100");
curl_setopt($curl, CURLOPT_HTTPHEADER, ["x-api-key: YOUR_API_KEY"]);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class PhoneIntelExample {
public static void main(String[] args) throws Exception {
HttpRequest request =
HttpRequest.newBuilder()
.uri(URI.create("https://api.trestleiq.com/3.0/phone_intel?phone=2069735100"))
.header("x-api-key", "YOUR_API_KEY")
.GET()
.build();
HttpResponse<String> response =
HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
{
"id": "Phone.3dbb6fef-a2df-4b08-cfe3-bc7128b6f5b4",
"phone_number": "2069735100",
"is_valid": true,
"activity_score": 50,
"country_calling_code": "1",
"country_code": "US",
"country_name": "United States",
"line_type": "NonFixedVOIP",
"carrier": "Level 3 Communications, LLC",
"is_prepaid": false,
"add_ons": {
"litigator_checks": {
"phone.is_litigator_risk": true
}
},
"error": {
"name": "InternalError",
"message": "Could not retrieve entire response"
},
"warnings": [
"Missing Input"
]
}
curl --request GET \
--url "https://api.trestleiq.com/3.0/phone_intel?phone=2069735100" \
--header "x-api-key: YOUR_API_KEY"
const response = await fetch(
"https://api.trestleiq.com/3.0/phone_intel?phone=2069735100",
{
headers: {
"x-api-key": "YOUR_API_KEY",
},
}
);
const data = await response.json();
import axios from "axios";
const { data } = await axios.get(
"https://api.trestleiq.com/3.0/phone_intel?phone=2069735100",
{
headers: {
"x-api-key": "YOUR_API_KEY",
},
}
);
console.log(data);
import requests
headers = {"x-api-key": "YOUR_API_KEY"}
response = requests.get(
"https://api.trestleiq.com/3.0/phone_intel",
params={"phone": "2069735100"},
headers=headers,
timeout=30,
)
data = response.json()
print(data)
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("x-api-key", "YOUR_API_KEY");
var response = await client.GetAsync("https://api.trestleiq.com/3.0/phone_intel?phone=2069735100");
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.trestleiq.com/3.0/phone_intel?phone=2069735100", nil)
req.Header.Set("x-api-key", "YOUR_API_KEY")
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}
<?php
$curl = curl_init("https://api.trestleiq.com/3.0/phone_intel?phone=2069735100");
curl_setopt($curl, CURLOPT_HTTPHEADER, ["x-api-key: YOUR_API_KEY"]);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class PhoneIntelExample {
public static void main(String[] args) throws Exception {
HttpRequest request =
HttpRequest.newBuilder()
.uri(URI.create("https://api.trestleiq.com/3.0/phone_intel?phone=2069735100"))
.header("x-api-key", "YOUR_API_KEY")
.GET()
.build();
HttpResponse<String> response =
HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
{
"id": "Phone.3dbb6fef-a2df-4b08-cfe3-bc7128b6f5b4",
"phone_number": "2069735100",
"is_valid": true,
"activity_score": 50,
"country_calling_code": "1",
"country_code": "US",
"country_name": "United States",
"line_type": "NonFixedVOIP",
"carrier": "Level 3 Communications, LLC",
"is_prepaid": false,
"add_ons": {
"litigator_checks": {
"phone.is_litigator_risk": true
}
},
"error": {
"name": "InternalError",
"message": "Could not retrieve entire response"
},
"warnings": [
"Missing Input"
]
}
Phone Validation API 3.0
GET https://api.trestleiq.com/3.0/phone_intel?phone=[insert_phone]
Query Parameters
The ISO-3166 alpha-2 country code of the phone number. Example:
phone.country_hint=USRequest parameter to enable specific add-ons available for this endpoint. Add-ons incur additional charges. Please see here for more details. Example:
litigator_checksOptional identifier used to group queries by source, campaign, channel, or cohort. Maximum length is 255 characters.
Headers
Response
The phone number in E.164 or local format. The default country calling code is +1 (USA).
Trestle’s activity scores range from 0 to 100. A score of 100 means consistent activity in the last 12 months, and a score of 0 means a disconnected number or no activity has been seen in the past year.An activity score of 70 or above means there is a high confidence that the phone is connected, assigned to a subscriber, and someone has been taking calls consistently. An activity score of 30 or below means there is a high confidence that the phone is either disconnected or no one will answer the call when the number is dialed in. An activity score of 50 means Trestle doesn’t have enough signals to predict whether the phone is connected or disconnected/inactive.If you want to filter leads based on the activity score, the following rules can be recommended:
- Prioritize dialing good numbers with consistent activity: Scores 70 or above.
- Weed out leads with disconnected/inactive numbers: Scores of 30 or below.
The ISO-3166 alpha-2 country code of the phone number. See: ISO-3166.
The line type of the phone number. Possible values:
Landline- Traditional wired phone lineMobile- Wireless phone lineFixedVOIP- VOIP number connected to a physical addressNonFixedVOIP- VOIP number unconnected to a fixed physical addressPremium- Caller pays a premium for the callTollFree- Callee pays for callVoicemail- Voicemail-only serviceOther- Line type is unclear
Warnings returned as part of the response, if applicable.
Enum: Invalid Input International number. Not authorized Missing Input Could not store source_id. 255 character limit exceeded Could not store source_id. Use only letters, numbers, spaces, and . _ - : / | #. The value cannot begin with -.
Enum: Invalid Input International number. Not authorized Missing Input Could not store source_id. 255 character limit exceeded Could not store source_id. Use only letters, numbers, spaces, and . _ - : / | #. The value cannot begin with -.
Error Responses
400 Bad Request
The server cannot process the request due to client-side errors.Check for: Syntax errors in the request script, malformed JSON, or invalid parameters.403 Forbidden
The request is understood, but the server is refusing to fulfill it. Error responses include anerrorCode field identifying the cause:-
Invalid API Key (
AUTHENTICATION_FAILED): The key is incorrect, deactivated, or missing from the request. Check for: Trailing spaces, syntax errors, incorrect character counts, or a missingx-api-keyheader. -
API Key Disabled (Portal Issue) (
AUTHENTICATION_FAILED): The key is inactive. Check for: Insufficient funds in your self-serve wallet or if a Trestle Admin manually deactivated your API key. -
API Key does not have Product Access (Portal Issue) (
AUTHENTICATION_FAILED): The API key is active, but it is not enabled for this product or API version. Check for: Incorrect endpoint, incorrect API version, or missing product access on the key. -
API Key Expired (
AUTHENTICATION_FAILED): The key has reached its end-of-life (primarily affects Trial users).
429 Too Many Requests
You have sent too many requests in a given amount of time.-
Rate Limit Exceeded (
RATE_LIMIT_EXCEEDED): You have surpassed the queries-per-second (QPS) threshold for your tier. -
Quota Exceeded (Portal Issue) (
QUOTA_EXCEEDED): You have reached the total volume allowed for your current billing cycle. Upgrade your plan in the portal to resume service.
