Skip to main content
curl --request GET \
  --url "https://api.trestleiq.com/1.0/real_contact?name=John%20Doe&phone=4259853735&email=john.doe@example.com" \
  --header "x-api-key: YOUR_API_KEY"
{
  "phone.is_valid": true,
  "phone.activity_score": 57,
  "phone.line_type": "Mobile",
  "phone.name_match": true,
  "contact_grade": "A",
  "error": {},
  "warnings": "Missing Input"
}
GET
/
1.0
/
real_contact
curl --request GET \
  --url "https://api.trestleiq.com/1.0/real_contact?name=John%20Doe&phone=4259853735&email=john.doe@example.com" \
  --header "x-api-key: YOUR_API_KEY"
{
  "phone.is_valid": true,
  "phone.activity_score": 57,
  "phone.line_type": "Mobile",
  "phone.name_match": true,
  "contact_grade": "A",
  "error": {},
  "warnings": "Missing Input"
}

Real Contact 1.0

GET https://api.trestleiq.com/1.0/real_contact?api_key=[insert_key]&name=[insert_name]&phone=[insert_phone]&email=[insert_email]&ip_address=[insert_ip_address]&address.street_line_1=[insert_street_line_1]&address.city=[insert_city]&address.state_code=[insert_state_code]&address.postal_code=[insert_postal_code]&address.country_code=[insert_country_code]

Query Parameters

name
string
required
The name of the person to search. Example: name=John Doe
phone
string
required
The phone provided by the lead on the web form. Example: phone=2069735100
email
string
The email provided by the lead on the web form. Example: email=john.doe@example.com
ip_address
string
The IP address from which the lead signed up on the web form. Example: ip_address=192.0.0.1
address.street_line_1
string
The first line of the street part in the structured address. (Cannot be longer than 1000 characters.) Example: address.street_line_1=100 Syrws St
address.street_line_2
string
The second line of the street part in the structured address. (Cannot be longer than 1000 characters.) Example: address.street_line_2=Ste 1
address.city
string
The name of the city in the structured address. (Cannot be longer than 500 characters.) Example: address.city=Seattle
address.postal_code
string
The postal code of the structured address. (Cannot be longer than 100 characters.) Example: address.postal_code=98101
address.state_code
string
The state code of the structured address. (Cannot be longer than 100 characters.) Example: address.state_code=WA
address.country_code
string <ISO-3166-2>
The ISO-3166 alpha-2 country code of the address. See:ISO-3166. Cannot be longer than 100 characters. Example: address.country_code=US

Headers

x-api-key
string
required
Your API key for authentication. Example: {{apiKey}}

Response

phone.is_valid
boolean or null
True if the phone number is valid.
activity_score
integer or null
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.
phone.line_type
string or null
The line type of the phone number. Possible values: - Landline - Traditional wired phone line - Mobile - Wireless phone line - FixedVOIP - VOIP number connected to a physical address - NonFixedVOIP - VOIP number unconnected to a fixed physical address - Premium - Caller pays a premium for the call - TollFree - Callee pays for call - Voicemail - Voicemail-only service - Other - Line type is unclear Enum: Landline Mobile FixedVOIP NonFixedVOIP Premium TollFree Voicemail Other
person.name_match
integer or null
A match/no match indicator whether the name provided on the lead form matches to the input phone number according to our database. A match is a positive indicator that verifies the lead is real and is who he/she says they are.
contact_grade
string or null
string An A-F grade determining the quality of the lead and whether it is contactable. A Grade-F lead is a bad lead and should be deprioritized while a Grade-A lead is real and contactable and should be prioritized.
error
object(PartialError)
Error details in case of an error.
warnings
string[]
Warnings returned as part of the response, if applicable. Possible values include: Invalid Input, International number. Not authorized, or Missing Input.

Error Responses

400

  • Invalid Parameters Error: Parameter called incorrectly.
  • Input Field Error: Incorrect parameter information, such as non-existent area code on a phone number.
  • Input Error: No parameters given.
  • Internal Error: If there is an internal error while performing the checks

401

  • Bad Request: If ’;’ used as parameter separator in request. Non-UTF-8-encoded request.
  • Not Authorized: No api_key parameter in the request.

403

  • Auth Error: API Key is not authorized for that request or expired.
  • Quota Exceeded Error: API Key has exceeded its quota.

429 Too Many Requests

  • API Key has exceeded its rate limit.

500 Internal Server Error

  • An unexpected error occurred on the server.