> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Trestle

> Phone validation, caller identification and lead-contact grading (phone, email, address, IP) from Trestle's identity data.

![](https://mintcdn.com/webrouter/8QP9EZc8V07Kl-0I/logo/data-apis/trestleiq.webp?fit=max\&auto=format\&n=8QP9EZc8V07Kl-0I\&q=85\&s=e611c9f059daabefcca4ad38b8ba1473)

[Web Catalog · Verification](https://docs.webrouter.net/data-apis.md?category=verification)

Needs&#x20;

`TRESTLEIQ_API_KEY`

Endpoints

3

Auth

Key in header

[Vendor docs](https://docs.trestleiq.com/api-reference)

## Setup

| Variable | | What it is |
| - | - | - |
| `TRESTLEIQ_API_KEY` | required | a Trestle API key (sign up and manage keys at portal.trestleiq.com) |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Every call is a GET with the key in the x-api-key header.
* Problems with the input come back as warnings on a 200 response, not as a 400.
* Add-ons (litigator\_checks, spam\_checks, email\_checks\_deliverability, email\_checks\_age) are comma-separated in add\_ons and cost extra.
* Trestle data is not a consumer report: do not use it for credit, insurance, employment, housing or benefits decisions.
* The docs also list reverse phone, reverse address, address validation, smart CNAM, phone feedback and decision signals APIs, which this entry leaves out.

## Endpoints

GET

Validate a phone number

Validity, carrier, line type, prepaid flag, country and a 0-100 activity score.

[Open](#trestleiq-phone-validate)

GET

Identify the top owner of a phone number

Line type, carrier, and the highest-ranked owner with their current address.

[Open](#trestleiq-phone-caller-id)

GET

Verify and grade a lead's contact details

A-F grades and activity scores across name, phone, email, address and IP, with name-match flags and IP trust signals.

[Open](#trestleiq-contact-grade)

### Validate a phone number

GET

`/3.0/phone_intel`

`trestleiq.phone.validate`

Validity, carrier, line type, prepaid flag, country and a 0-100 activity score.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`phone` required</td><td>string</td><td>query</td><td>Phone number in E.164 or local format. Example `2069735100`</td></tr>
    <tr><td>`country_hint`</td><td>string</td><td>query</td><td>ISO-3166 alpha-2 country of the number, used to read a local-format number. Example `US`</td></tr>
    <tr><td>`add_ons`</td><td>string</td><td>query</td><td>Comma-separated add-ons: litigator\_checks (extra charge). Example `litigator_checks`</td></tr>

    <tr>
      <td>
        `source_id`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Groups queries by source, campaign or channel; up to 255 characters of letters, numbers, spaces and . \_ - : / | #. An invalid value is dropped, not an error.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.trestleiq.com/api-reference/phone-validation-api) · Same job: [HLR Lookup](https://docs.webrouter.net/data-apis/hlrlookup.md#hlrlookup-hlr-lookup), [Telnyx](https://docs.webrouter.net/data-apis/telnyx.md#telnyx-number-lookup), [Twilio](https://docs.webrouter.net/data-apis/twilio.md#twilio-lookup), [Whitepages Pro](https://docs.webrouter.net/data-apis/whitepages.md#whitepages-phone-get)

```python Python theme={null}
router.call_data_api("trestleiq.phone.validate", {'phone': '2069735100', 'country_hint': 'US', 'add_ons': 'litigator_checks'})
```

```text MCP theme={null}
call_data_api(endpoint="trestleiq.phone.validate", params={"phone": "2069735100", "country_hint": "US", "add_ons": "litigator_checks"})
```

> [!NOTE]
>
> * A low activity score points to a disconnected number.

### Identify the top owner of a phone number

GET

`/3.1/caller_id`

`trestleiq.phone.caller_id`

Line type, carrier, and the highest-ranked owner with their current address.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`phone` required</td><td>string</td><td>query</td><td>Phone number in E.164 or local format; default country calling code is +1. Example `2069735100`</td></tr>
    <tr><td>`country_hint`</td><td>string</td><td>query</td><td>ISO-3166 alpha-2 country of the number. Example `US`</td></tr>

    <tr>
      <td>
        `name_hint`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Name linked to the phone; ranks the matching owner higher.
      </td>
    </tr>

    <tr>
      <td>
        `postal_code_hint`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Postal code of the subscriber address; ranks the matching owner and address higher.
      </td>
    </tr>

    <tr>
      <td>
        `add_ons`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated add-ons: litigator\_checks, spam\_checks (extra charge).
      </td>
    </tr>

    <tr>
      <td>
        `source_id`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Groups queries by source, campaign or channel; up to 255 characters of letters, numbers, spaces and . \_ - : / | #. An invalid value is dropped, not an error.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.trestleiq.com/api-reference/caller-identification-api) · Same job: [AI Ark](https://docs.webrouter.net/data-apis/aiark.md#aiark-people-reverse-lookup), [Airscale](https://docs.webrouter.net/data-apis/airscale.md#airscale-profile-get), [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-linkedin-profile), [Anymail Finder](https://docs.webrouter.net/data-apis/anymailfinder.md#anymailfinder-person-reverse-lookup), [Apollo.io](https://docs.webrouter.net/data-apis/apollo.md#apollo-people-enrich), [Aviato](https://docs.webrouter.net/data-apis/aviato.md#aviato-person-enrich)

```python Python theme={null}
router.call_data_api("trestleiq.phone.caller_id", {'phone': '2069735100', 'country_hint': 'US'})
```

```text MCP theme={null}
call_data_api(endpoint="trestleiq.phone.caller_id", params={"phone": "2069735100", "country_hint": "US"})
```

> [!NOTE]
>
> * US-focused data; returns only the best-ranked owner.

### Verify and grade a lead's contact details

GET

`/2.0/real_contact`

`trestleiq.contact.grade`

A-F grades and activity scores across name, phone, email, address and IP, with name-match flags and IP trust signals.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`name` required</td><td>string</td><td>query</td><td>Full name of the lead. Example `John Doe`</td></tr>

    <tr>
      <td>
        `first_name`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        First name.
      </td>
    </tr>

    <tr>
      <td>
        `last_name`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Last name.
      </td>
    </tr>

    <tr>
      <td>
        `business_name`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Business name.
      </td>
    </tr>

    <tr><td>`phone` required</td><td>string</td><td>query</td><td>Phone number the lead gave. Example `4259853735`</td></tr>
    <tr><td>`email`</td><td>string</td><td>query</td><td>Email the lead gave. Example `john.doe@example.com`</td></tr>
    <tr><td>`street_line_1`</td><td>string</td><td>query</td><td>First street line. Example `100 Syrws St`</td></tr>

    <tr>
      <td>
        `street_line_2`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Second street line.
      </td>
    </tr>

    <tr>
      <td>
        `city`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        City.
      </td>
    </tr>

    <tr>
      <td>
        `state_code`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Two-letter state code or full state name.
      </td>
    </tr>

    <tr>
      <td>
        `postal_code`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        5-digit ZIP or ZIP+4.
      </td>
    </tr>

    <tr><td>`country_code`</td><td>string</td><td>query</td><td>ISO-3166 alpha-2 country of the address. Example `US`</td></tr>
    <tr><td>`ip_address`</td><td>string</td><td>query</td><td>IPv4 or IPv6 address captured when the lead submitted the form. Example `192.0.0.1`</td></tr>

    <tr>
      <td>
        `add_ons`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated add-ons: email\_checks\_deliverability, email\_checks\_age, litigator\_checks (extra charge).
      </td>
    </tr>

    <tr>
      <td>
        `source_id`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Groups queries by source, campaign or channel; up to 255 characters of letters, numbers, spaces and . \_ - : / | #. An invalid value is dropped, not an error.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.trestleiq.com/api-reference/real-contact-api) · Same job: [Data Legion](https://docs.webrouter.net/data-apis/datalegion.md#datalegion-utility-validate)

```python Python theme={null}
router.call_data_api("trestleiq.contact.grade", {'name': 'John Doe', 'phone': '4259853735', 'email': 'john.doe@example.com', 'street_line_1': '100 Syrws St', 'country_code': 'US', 'ip_address': '192.0.0.1'})
```

```text MCP theme={null}
call_data_api(endpoint="trestleiq.contact.grade", params={"name": "John Doe", "phone": "4259853735", "email": "john.doe@example.com", "street_line_1": "100 Syrws St", "country_code": "US", "ip_address": "192.0.0.1"})
```

> [!NOTE]
>
> * Name and phone are required; the more of email, address and IP you send, the more grades come back.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.