Skip to main content
curl --request GET \
  --url "https://api.trestleiq.com/2.0/real_contact?name=John%20Doe&phone=4259853735&email=john.doe@example.com&ip_address=192.0.0.1" \
  --header "x-api-key: YOUR_API_KEY"
{
  "phone": {
    "contact_grade": "A",
    "is_valid": true,
    "activity_score": 95,
    "line_type": "Mobile",
    "name_match": true
  },
  "email": {
    "contact_grade": "A",
    "is_valid": true,
    "name_match": true
  },
  "address": {
    "is_valid": true,
    "name_match": true
  },
  "ip_address": {
    "trust_score": 92,
    "ip_distance_to_address": 12
  },
  "add_ons": {
    "litigator_checks": {
      "phone_is_litigator_risk": false
    },
    "email_checks": {
      "email_age_score": 95,
      "email_is_deliverable": true
    }
  },
  "warnings": [],
  "errors": null
}
curl --request GET \
  --url "https://api.trestleiq.com/2.0/real_contact?name=John%20Doe&phone=4259853735&email=john.doe@example.com&ip_address=192.0.0.1" \
  --header "x-api-key: YOUR_API_KEY"
{
  "phone": {
    "contact_grade": "A",
    "is_valid": true,
    "activity_score": 95,
    "line_type": "Mobile",
    "name_match": true
  },
  "email": {
    "contact_grade": "A",
    "is_valid": true,
    "name_match": true
  },
  "address": {
    "is_valid": true,
    "name_match": true
  },
  "ip_address": {
    "trust_score": 92,
    "ip_distance_to_address": 12
  },
  "add_ons": {
    "litigator_checks": {
      "phone_is_litigator_risk": false
    },
    "email_checks": {
      "email_age_score": 95,
      "email_is_deliverable": true
    }
  },
  "warnings": [],
  "errors": null
}

Real Contact 2.0

GET https://api.trestleiq.com/2.0/real_contact?name=[insert_name]&phone=[insert_phone]&email=[insert_email]&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]&ip_address=[insert_ip_address]
Note: Authentication must be provided via the x-api-key header. Query parameter authentication is not supported in v2.0.

Query Parameters

name
string
required
The name of the person to search. Example: name=John Doe
first_name
string
The first name of the person to search. Example: first_name=John
last_name
string
The last name of the person to search. Example: last_name=Doe
business.name
string
The business name to search. Example: business.name=The Golden Company
phone
string
required
The phone provided by the lead on the web form. Example: phone=4259853735
email
string
The email provided by the lead on the web form. Example: email=john.doe@example.com
address.street_line_1
string
The first line of the street part in the structured address. Example: address.street_line_1=100 Syrws St
address.street_line_2
string
The second line of the street part in the structured address. Example: address.street_line_2=Apt 4B
address.city
string
The name of the city in the structured address. Example: address.city=Lynden
address.state_code
string
The state code of the structured address. Example: address.state_code=WA
address.postal_code
string
The postal code of the structured address. Example: address.postal_code=98229
address.country_code
string (ISO-3166-2)
The ISO-3166 alpha-2 country code of the address. Example: address.country_code=US
ip_address
string
The IP address captured at the time of interaction (web form, sign up, etc.). Example: ip_address=192.0.0.1
add_ons
string
Request parameter to enable specific add-ons available for this endpoint. Add-ons incur additional charges. Please see here for more details.
  • email_checks_deliverability: to enable email deliverability checks in the response
  • email_checks_age: to enable email age score in the response
  • litigator_checks: to enable litigator checks in the response
Example: add_ons=litigator_checks,email_checks_deliverability

Headers

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

Response

phone
object
Phone verification and grading results.
email
object
Email verification and grading results.
address
object
Address verification results.
ip_address
object or null
IP Trust Score and IP distance results. Returned when an IP address is provided in the request.
add_ons
object or null
errors
object(PartialError) or null
Error details in case of a partial error, or null if no errors occurred.
warnings
string[]
Warnings returned as part of the response, if applicable.Missing InputMissing Unit/Apt/Suite NumberInvalid AddressInvalid House/Building NumberInvalid Unit/Apt/Suite NumberInvalid PhoneLead is a Litigator. Must not be contacted.TimeoutError: Timeout getting response for litigator check. Partial response returned.Invalid EmailFree Email Service ProviderTumbled EmailDisposible EmailPrivacy EmailEmail is a spam trapPotential Junk EmailRole Based EmailUndeliverable EmailDomain is a catch all and does not support validationMX forwarding detected. This email may route through a forwarding service.Could not validate emailTimeoutError: Timeout getting a response from the email server for email deliverability checkInput IP address is invalid. Please provide a valid IPv4 or IPv6 addressTimeout getting response for IP information. Partial response returned

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.
  • Invalid API Key: The key is incorrect or deactivated. Check for: Trailing spaces, syntax errors, or incorrect character counts.
  • API Key Missing: The request header did not include an API key.
  • API Key Disabled (Portal Issue): 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): 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: 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: You have surpassed the queries-per-second (QPS) threshold for your tier.
  • Quota Exceeded (Portal Issue): You have reached the total volume allowed for your current billing cycle. Upgrade your plan in the portal to resume service.

500 Internal Server Error

An unexpected error occurred on the server side. Please contact support if this persists.