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

# Upcell: Enrich Contact

> Find a person's email and phone details from their LinkedIn URL or name and company. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

Find a person's email and phone details from their LinkedIn URL or name and company.

> [!NOTE]
>
> Tool ID: `upcell_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(
  'upcell_enrich_contact',
  {
    "fields": [
      "email"
    ]
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute upcell_enrich_contact --input '{
  "fields": [
    "email"
  ]
}' --json
```

## Example response

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

## Input reference

Enrich a LinkedIn profile with contact details from **upcell’s** database. This endpoint accepts a LinkedIn URL and a list of fields you want to retrieve. ### Request Body | **Field** | **Type** | **Description** | **Required** | | --- | --- | --- | --- | | `linkedinUrl` | `string` | The LinkedIn profile URL of the contact to enrich. | ❌ No | | `firstName` | `string` | The first name of the contact to enrich. | ❌ No | | `lastName` | `string` | The last name of the contact to enrich. | ❌ No | | `title` | `string` | The title of the contact to enrich. | ❌ No | | `companyName` | `string` | The company name of the contact to enrich. | ❌ No | | `companyDomain` | `string` | The company domain of the contact to enrich. | ❌ No | | `companySocialUrl` | `string` | The company social url of the contact to enrich. | ❌ No | | `email` | `string` | The email of the contact to enrich. | ❌ No | | See the live schema below for the complete notes.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.linkedinUrl` | `string` | No | — | The LinkedIn profile URL of the contact to enrich. |
| `payload.firstName` | `string` | No | — | The first name of the contact to enrich. |
| `payload.lastName` | `string` | No | — | The last name of the contact to enrich. |
| `payload.title` | `string` | No | — | The title of the contact to enrich. |
| `payload.companyName` | `string` | No | — | The company name of the contact to enrich. |
| `payload.companyDomain` | `string` | No | — | The company domain of the contact to enrich. |
| `payload.companySocialUrl` | `string` | No | — | The company social URL of the contact to enrich. |
| `payload.email` | `string` | No | — | The email of the contact to enrich. |
| `payload.personalEmail` | `string` | No | — | The personal email of the contact to enrich. |
| `payload.fields` | `array` | Yes | — | List of fields to enrich (e.g., mobile). |

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

  ### Input JSON Schema

  ````json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Enrich a LinkedIn profile with contact details from **upcell’s** database. This endpoint accepts a LinkedIn URL and a list of fields you want to retrieve. ### Request Body | **Field** | **Type** | **Description** | **Required** | | --- | --- | --- | --- | | `linkedinUrl` | `string` | The LinkedIn profile URL of the contact to enrich. | ❌ No | | `firstName` | `string` | The first name of the contact to enrich. | ❌ No | | `lastName` | `string` | The last name of the contact to enrich. | ❌ No | | `title` | `string` | The title of the contact to enrich. | ❌ No | | `companyName` | `string` | The company name of the contact to enrich. | ❌ No | | `companyDomain` | `string` | The company domain of the contact to enrich. | ❌ No | | `companySocialUrl` | `string` | The company social url of the contact to enrich. | ❌ No | | `email` | `string` | The email of the contact to enrich. | ❌ No | | `personalEmail` | `string` | The personal email of the contact to enrich. | ❌ No | | `fields` | `array` | List of fields to enrich (e.g., `mobile`). | ✅ Yes | ### Possible Field Values - `mobile` --- ### Required Fields One of the following is required to match to a contact: 1. firstName, lastName, title, companyName 1. firstName, lastName AND (companyDomain OR companySocialUrl) 1. email 1. personalEmail 1. linkedinUrl --- ### Example Request (JSON) ``` json { \"linkedinUrl\": \"https://www.linkedin.com/in/marklbedard\", \"fields\": [\"mobile\"] } ``` --- ### Response The response returns a `Contact` object with the enriched contact information. #### Example Success Response ``` json { \"contact\": { \"linkedinUrl\": \"https://www.linkedin.com/in/marklbedard\", \"mobilePhone\": \"+15550123456\" } } ``` --- ### Error Handling The API returns appropriate error messages with status codes if something goes wrong. | **Error Code** | **Message** | **Description** | | --- | --- | --- | | 400 | Invalid Request | Verify your request is properly formatted | | 401 | Unauthorized | Verify you are using a valid API key | | 500 | Internal Server Error | An unexpected error occurred. | #### Example Error Response ``` json { \"error\": { \"code\": 400, \"message\":\"LinkedinUrl is required for data enrichment\" } } ```",
    "properties": {
      "linkedinUrl": {
        "type": "string",
        "description": "The LinkedIn profile URL of the contact to enrich."
      },
      "firstName": {
        "type": "string",
        "description": "The first name of the contact to enrich."
      },
      "lastName": {
        "type": "string",
        "description": "The last name of the contact to enrich."
      },
      "title": {
        "type": "string",
        "description": "The title of the contact to enrich."
      },
      "companyName": {
        "type": "string",
        "description": "The company name of the contact to enrich."
      },
      "companyDomain": {
        "type": "string",
        "description": "The company domain of the contact to enrich."
      },
      "companySocialUrl": {
        "type": "string",
        "description": "The company social URL of the contact to enrich."
      },
      "email": {
        "type": "string",
        "description": "The email of the contact to enrich."
      },
      "personalEmail": {
        "type": "string",
        "description": "The personal email of the contact to enrich."
      },
      "fields": {
        "type": "array",
        "description": "List of fields to enrich (e.g., mobile).",
        "items": {
          "type": "string"
        }
      }
    },
    "required": [
      "fields"
    ],
    "additionalProperties": false
  }
  ````
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `unknown` | Yes | — | Provider response payload. |
| `result.meta` | `object` | 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": {
        "description": "Provider response payload."
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

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

## Related documentation

* [Upcell provider guide](https://deepline.com/docs/providers/upcell/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.