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

# Trestle: Real Contact

> Verify a phone number belongs to a specific person. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Verify a phone number belongs to a specific person.

> [!NOTE]
>
> Tool ID: `trestle_real_contact`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'trestle_real_contact',
  {
    "phone": "+14155550123",
    "name": "Example"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute trestle_real_contact --input '{
  "phone": "+14155550123",
  "name": "Example"
}' --json
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "phone.is_valid": true,
    "phone.activity_score": 123,
    "phone.linetype": "+14155550123",
    "phone.name_match": true,
    "phone.contact_grade": "+14155550123",
    "email.is_valid": true,
    "email.name_match": true,
    "email.contact_grade": "jane.doe@example.com",
    "address.is_valid": null,
    "address.name_match": null,
    "errors": null,
    "warnings": [
      {}
    ],
    "phone": "+14155550123",
    "name": "Example",
    "email": "jane.doe@example.com"
  }
}
```

Use `deepline describe trestle_real_contact --json` for the latest machine-readable contract.

## Input reference

Verify a phone number belongs to a specific person via Trestle Real Contact API 2.0. Returns name\_match, contact\_grade (A-F), line type, and activity score. optionally flags TCPA litigator risk. Use when identity verification matters.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.phone` | `string` | Yes | — | Phone number to validate (E.164 or digits). Minimum length: 1. |
| `payload.name` | `string` | Yes | — | Full name of the person the phone should belong to. Required by the upstream API to score name\_match and contact\_grade. Minimum length: 1. |
| `payload.email` | `string` | No | — | Email address to cross-validate in the same call. Adds the email.\* response block. Minimum length: 1. |
| `payload.business_name` | `string` | No | — | Business the person is associated with. Minimum length: 1. |
| `payload.street_line_1` | `string` | No | — | Street address line 1. Minimum length: 1. |
| `payload.city` | `string` | No | — | City. Minimum length: 1. |
| `payload.state_code` | `string` | No | — | Two-letter state code. Minimum length: 2. Maximum length: 2. |
| `payload.postal_code` | `string` | No | — | Postal code. Minimum length: 1. |
| `payload.litigator_check` | `boolean` | No | — | Also check whether the phone is tied to TCPA or consumer-protection litigation. Returns add\_ons.litigator\_checks.phone\_is\_litigator\_risk. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Verify a phone number belongs to a specific person via Trestle Real Contact API 2.0. Returns name_match, contact_grade (A-F), line type, and activity score; optionally flags TCPA litigator risk. Use when identity verification matters.",
    "properties": {
      "phone": {
        "type": "string",
        "description": "Phone number to validate (E.164 or digits).",
        "minLength": 1
      },
      "name": {
        "type": "string",
        "description": "Full name of the person the phone should belong to. Required by the upstream API to score name_match and contact_grade.",
        "minLength": 1
      },
      "email": {
        "type": "string",
        "description": "Email address to cross-validate in the same call. Adds the email.* response block.",
        "minLength": 1
      },
      "business_name": {
        "type": "string",
        "description": "Business the person is associated with.",
        "minLength": 1
      },
      "street_line_1": {
        "type": "string",
        "description": "Street address line 1.",
        "minLength": 1
      },
      "city": {
        "type": "string",
        "description": "City.",
        "minLength": 1
      },
      "state_code": {
        "type": "string",
        "description": "Two-letter state code.",
        "minLength": 2,
        "maxLength": 2
      },
      "postal_code": {
        "type": "string",
        "description": "Postal code.",
        "minLength": 1
      },
      "litigator_check": {
        "type": "boolean",
        "description": "Also check whether the phone is tied to TCPA or consumer-protection litigation. Returns add_ons.litigator_checks.phone_is_litigator_risk."
      }
    },
    "required": [
      "phone",
      "name"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | — |
| `result.data.phone.is_valid` | `boolean` | Yes | — | — |
| `result.data.phone.activity_score` | `integer` | Yes | — | — |
| `result.data.phone.linetype` | `string` | Yes | — | — |
| `result.data.phone.name_match` | `boolean` | Yes | — | — |
| `result.data.phone.contact_grade` | `string` | Yes | — | — |
| `result.data.email.is_valid` | `boolean` | Yes | — | — |
| `result.data.email.name_match` | `boolean` | Yes | — | — |
| `result.data.email.contact_grade` | `string` | Yes | — | — |
| `result.data.address.is_valid` | `null` | Yes | — | — |
| `result.data.address.name_match` | `null` | Yes | — | — |
| `result.data.errors` | `null` | Yes | — | — |
| `result.data.warnings` | `array` | Yes | — | — |
| `result.data.phone` | `string` | Yes | — | — |
| `result.data.name` | `string` | Yes | — | — |
| `result.data.email` | `string` | Yes | — | — |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "properties": {
      "data": {
        "type": "object",
        "properties": {
          "phone.is_valid": {
            "type": "boolean"
          },
          "phone.activity_score": {
            "type": "integer"
          },
          "phone.linetype": {
            "type": "string"
          },
          "phone.name_match": {
            "type": "boolean"
          },
          "phone.contact_grade": {
            "type": "string"
          },
          "email.is_valid": {
            "type": "boolean"
          },
          "email.name_match": {
            "type": "boolean"
          },
          "email.contact_grade": {
            "type": "string"
          },
          "address.is_valid": {
            "type": "null"
          },
          "address.name_match": {
            "type": "null"
          },
          "errors": {
            "type": "null"
          },
          "warnings": {
            "type": "array",
            "items": {}
          },
          "phone": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          }
        },
        "required": [
          "phone.is_valid",
          "phone.activity_score",
          "phone.linetype",
          "phone.name_match",
          "phone.contact_grade",
          "email.is_valid",
          "email.name_match",
          "email.contact_grade",
          "address.is_valid",
          "address.name_match",
          "errors",
          "warnings",
          "phone",
          "name",
          "email"
        ],
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": true
  }
  ```
</details>

## Deepline cost

* Pricing model: `per_result` (per result).
* Estimated Deepline credits: `0.42` per pricing unit.

## Related documentation

* [Trestle provider guide](https://deepline.com/docs/providers/trestle/guide.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


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