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

# Datagma Enrich Person: Inputs, Cost & CLI Example

> Real-time person enrichment with email, phone, job title, company, and location fields. Includes inputs, outputs, costs, and Deepline CLI examples.

## 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=datagma_enrich_person:{}' --json
```

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

## Input Schema

| Name                  | Type     | Required | Default | Description |
| --------------------- | -------- | -------- | ------- | ----------- |
| `payload.linkedin`    | `string` | No       |         |             |
| `payload.email`       | `string` | No       |         |             |
| `payload.fullName`    | `string` | No       |         |             |
| `payload.companyName` | `string` | No       |         |             |
| `payload.domain`      | `string` | No       |         |             |
| `payload.phone`       | `string` | No       |         |             |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Compatibility person enrichment input that preserves the legacy Datagma public contract while routing through shared V2 enrichment.",
    "properties": {
      "linkedin": {
        "type": "string"
      },
      "email": {
        "type": "string"
      },
      "fullName": {
        "type": "string",
        "minLength": 1
      },
      "companyName": {
        "type": "string",
        "minLength": 1
      },
      "domain": {
        "type": "string",
        "minLength": 1
      },
      "phone": {
        "type": "string",
        "minLength": 1
      }
    },
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name                         | Type      | Required | Default | Description                                                                                                                                              |
| ---------------------------- | --------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `result.id`                  | `string`  | No       |         |                                                                                                                                                          |
| `result.full_name`           | `string`  | No       |         |                                                                                                                                                          |
| `result.first_name`          | `string`  | No       |         |                                                                                                                                                          |
| `result.last_name`           | `string`  | No       |         |                                                                                                                                                          |
| `result.email`               | `string`  | No       |         |                                                                                                                                                          |
| `result.professional_email`  | `string`  | No       |         |                                                                                                                                                          |
| `result.personal_email`      | `string`  | No       |         |                                                                                                                                                          |
| `result.phone`               | `string`  | No       |         |                                                                                                                                                          |
| `result.mobile_phone`        | `string`  | No       |         |                                                                                                                                                          |
| `result.linkedin`            | `string`  | No       |         |                                                                                                                                                          |
| `result.title`               | `string`  | No       |         |                                                                                                                                                          |
| `result.seniority`           | `string`  | No       |         |                                                                                                                                                          |
| `result.department`          | `string`  | No       |         |                                                                                                                                                          |
| `result.location`            | `object`  | No       |         |                                                                                                                                                          |
| `result.company`             | `object`  | No       |         | Native Datagma full-enrichment response. Deepline does not flatten this payload; use the declared company\_name and domain getters for canonical values. |
| `result.experience`          | `array`   | No       |         |                                                                                                                                                          |
| `result.education`           | `array`   | No       |         |                                                                                                                                                          |
| `result.skills`              | `array`   | No       |         |                                                                                                                                                          |
| `result.languages`           | `array`   | No       |         |                                                                                                                                                          |
| `result.twitter`             | `string`  | No       |         |                                                                                                                                                          |
| `result.github`              | `string`  | No       |         |                                                                                                                                                          |
| `result.summary`             | `string`  | No       |         |                                                                                                                                                          |
| `result.followers`           | `number`  | No       |         |                                                                                                                                                          |
| `result.connections`         | `number`  | No       |         |                                                                                                                                                          |
| `result.is_decision_maker`   | `boolean` | No       |         |                                                                                                                                                          |
| `result.job_change_detected` | `boolean` | No       |         |                                                                                                                                                          |
| `result.last_updated`        | `string`  | No       |         |                                                                                                                                                          |
| `result.confidence_score`    | `number`  | No       |         |                                                                                                                                                          |
| `result.data_sources`        | `array`   | No       |         |                                                                                                                                                          |

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

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "id": {
        "type": "string"
      },
      "full_name": {
        "type": "string"
      },
      "first_name": {
        "type": "string"
      },
      "last_name": {
        "type": "string"
      },
      "email": {
        "type": "string"
      },
      "professional_email": {
        "type": "string"
      },
      "personal_email": {
        "type": "string"
      },
      "phone": {
        "type": "string"
      },
      "mobile_phone": {
        "type": "string"
      },
      "linkedin": {
        "type": "string"
      },
      "title": {
        "type": "string"
      },
      "seniority": {
        "type": "string"
      },
      "department": {
        "type": "string"
      },
      "location": {
        "type": "object",
        "properties": {
          "city": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "country_code": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "company": {
        "type": "object",
        "description": "Native Datagma full-enrichment response. Deepline does not flatten this payload; use the declared company_name and domain getters for canonical values.",
        "properties": {
          "company": {
            "type": "object",
            "properties": {
              "basic": {
                "type": "object",
                "additionalProperties": true
              },
              "premium": {
                "type": "object",
                "additionalProperties": true
              }
            },
            "additionalProperties": true
          }
        },
        "additionalProperties": true
      },
      "experience": {
        "type": "array",
        "items": {
          "type": "object",
          "additionalProperties": true
        }
      },
      "education": {
        "type": "array",
        "items": {
          "type": "object",
          "additionalProperties": true
        }
      },
      "skills": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "languages": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "twitter": {
        "type": "string"
      },
      "github": {
        "type": "string"
      },
      "summary": {
        "type": "string"
      },
      "followers": {
        "type": "number"
      },
      "connections": {
        "type": "number"
      },
      "is_decision_maker": {
        "type": "boolean"
      },
      "job_change_detected": {
        "type": "boolean"
      },
      "last_updated": {
        "type": "string"
      },
      "confidence_score": {
        "type": "number"
      },
      "data_sources": {
        "type": "array",
        "items": {
          "type": "string"
        }
      }
    },
    "additionalProperties": true
  }
  ```
</details>

## Advanced: Direct CLI

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

```bash theme={null}
deepline tools execute datagma_enrich_person --payload '{}' --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.27` per pricing unit.
* Billing mode: `post_deduct`.
