> ## 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: Inputs, Cost & CLI Example

> Verify a phone number belongs to a specific person. Includes inputs, outputs, pricing notes, Deepline CLI examples, and GTM automation guidance.

## Run in Enrichment Spreadsheet

<Info>
  Use this function as a column step in `deepline enrich`.
</Info>

```bash theme={null}
deepline enrich --input leads.csv --output leads.enriched.csv --with 'result=trestle_real_contact:{"phone":"{{phone}}","name":"{{name}}"}' --json
```

<Tip>
  Map payload values to spreadsheet columns with `{{column_name}}` placeholders.
</Tip>

## Input Schema

| Name            | Type     | Required | Default | Description                                                                                                               |
| --------------- | -------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------- |
| `payload.phone` | `string` | Yes      |         | Phone number to validate (E.164 or digits).                                                                               |
| `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. |
| `payload.email` | `string` | No       |         | Email address to cross-validate in the same call. Adds the email.\* response block.                                       |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Verify a phone number belongs to a specific person via Trestle Real Contact API. Returns name_match, contact_grade (A-F), plus all Phone Intel fields. 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
      }
    },
    "required": [
      "phone",
      "name"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name          | Type     | Required | Default | Description |
| ------------- | -------- | -------- | ------- | ----------- |
| `result.data` | `object` | Yes      |         |             |

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

  ### Output JSON Schema

  ```json theme={null}
  {
    "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>

## Advanced: Direct CLI

<Info>
  Use direct execution for single payload debugging.
</Info>

```bash theme={null}
deepline tools execute trestle_real_contact --payload '{
  "phone": "string",
  "name": "string"
}' --json
```

### CLI flags

| Flag                        | Description                                         |
| --------------------------- | --------------------------------------------------- |
| `--json`                    | Print machine-readable output.                      |
| `--wait`                    | Wait for terminal provider status when supported.   |
| `--debug`                   | Enable wait mode with additional status/log output. |
| `--wait-timeout SECONDS`    | Max seconds to wait in wait mode.                   |
| `--poll-interval SECONDS`   | Polling interval in seconds during wait mode.       |
| `--timeout SECONDS`         | Request timeout in seconds.                         |
| `--connect-timeout SECONDS` | Connection timeout in seconds.                      |

## Cost

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