> ## 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.

# Deepline Native: Enrich Contact

> Enrich one person from a LinkedIn URL, email, or name plus company domain with work email and optional phone, waiting for final results.

Enrich one person from a LinkedIn URL, email, or name plus company domain with work email and optional phone, waiting for final results.

> [!NOTE]
>
> Tool ID: `enrich_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(
  'enrich_contact',
  {
    "linkedin": "https://www.linkedin.com/in/jane-doe",
    "first_name": "Jane",
    "last_name": "Doe"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute enrich_contact --input '{
  "linkedin": "https://www.linkedin.com/in/jane-doe",
  "first_name": "Jane",
  "last_name": "Doe"
}' --json
```

## Example response

The static output schema lacks the details for a reliable example. Use `deepline describe enrich_contact --json` for the complete live contract.

## Input reference

Run contact enrichment by identity hints and wait for completion, returning job\_id.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.linkedin` | `string` | No | — | LinkedIn profile id or profile URL slug (max 500 chars). |
| `payload.first_name` | `string` | No | — | First name for contact match and enrichment resolution (max 100 chars). |
| `payload.last_name` | `string` | No | — | Last name for contact match and enrichment resolution (max 100 chars). |
| `payload.full_name` | `string` | No | — | Full name of the contact if first/last are unavailable (max 250 chars). |
| `payload.domain` | `string` | No | — | Primary domain to match contact to company context (2-500 chars). |
| `payload.email` | `string` | No | — | Either professional or personal email to enrich (max 254 chars). |
| `payload.include_phones` | `boolean` | No | — | If true, enrich phone in the same workflow where possible. |
| `payload.webhook_url` | `string` | No | — | Webhook endpoint for callback delivery (max 2083 chars). |
| `payload.custom_fields` | `record` | No | — | Opaque metadata echoed back in finder responses via custom\_fields (max 16 keys). |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Run contact enrichment by identity hints and wait for completion, returning job_id.",
    "properties": {
      "linkedin": {
        "type": "string",
        "description": "LinkedIn profile id or profile URL slug (max 500 chars)."
      },
      "first_name": {
        "type": "string",
        "description": "First name for contact match and enrichment resolution (max 100 chars)."
      },
      "last_name": {
        "type": "string",
        "description": "Last name for contact match and enrichment resolution (max 100 chars)."
      },
      "full_name": {
        "type": "string",
        "description": "Full name of the contact if first/last are unavailable (max 250 chars)."
      },
      "domain": {
        "type": "string",
        "description": "Primary domain to match contact to company context (2-500 chars)."
      },
      "email": {
        "type": "string",
        "description": "Either professional or personal email to enrich (max 254 chars)."
      },
      "include_phones": {
        "type": "boolean",
        "description": "If true, enrich phone in the same workflow where possible."
      },
      "webhook_url": {
        "type": "string",
        "description": "Webhook endpoint for callback delivery (max 2083 chars)."
      },
      "custom_fields": {
        "type": "object",
        "description": "Opaque metadata echoed back in finder responses via custom_fields (max 16 keys).",
        "additionalProperties": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        }
      }
    },
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `record` | Yes | — | Provider response payload. |
| `result.meta` | `record` | No | — | Additional response metadata (status, paging). |

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

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "additionalProperties": {}
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": {}
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

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

## Related documentation

* [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.