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

> Enrich company firmographics from Datagma data: company name, website, domain, or SIREN number. 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_company:{}' --json
```

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

## Input Schema

| Name                     | Type      | Required | Default | Description                                                                                |
| ------------------------ | --------- | -------- | ------- | ------------------------------------------------------------------------------------------ |
| `payload.data`           | `string`  | No       |         | Datagma identifier for company enrichment: company name, website, domain, or SIREN number. |
| `payload.companyName`    | `string`  | No       |         | Legacy company-name alias for data. Used when data is not provided.                        |
| `payload.domain`         | `string`  | No       |         | Legacy company-domain alias for data. Used when data is not provided.                      |
| `payload.website`        | `string`  | No       |         | Legacy company-website alias for data. Used when data is not provided.                     |
| `payload.companyDomain`  | `string`  | No       |         | Legacy company-domain alias for data. Used when data is not provided.                      |
| `payload.companyKeyword` | `string`  | No       |         | Optional Datagma disambiguation keyword, such as founder, location, or industry.           |
| `payload.countryCode`    | `string`  | No       |         | Optional Datagma country code to narrow matching.                                          |
| `payload.firstName`      | `string`  | No       |         |                                                                                            |
| `payload.lastName`       | `string`  | No       |         |                                                                                            |
| `payload.fullName`       | `string`  | No       |         |                                                                                            |
| `payload.companyPremium` | `boolean` | No       |         |                                                                                            |
| `payload.companyFull`    | `boolean` | No       |         |                                                                                            |
| `payload.companyFrench`  | `boolean` | No       |         |                                                                                            |
| `payload.personFull`     | `boolean` | No       |         |                                                                                            |
| `payload.phoneFull`      | `boolean` | No       |         |                                                                                            |
| `payload.deepTraffic`    | `boolean` | No       |         |                                                                                            |
| `payload.debug`          | `boolean` | No       |         |                                                                                            |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Datagma company enrichment input matching the documented /api/ingress/v2/full query params, excluding apiId. Also accepts legacy companyName/domain aliases and maps them to data.",
    "properties": {
      "data": {
        "type": "string",
        "description": "Datagma identifier for company enrichment: company name, website, domain, or SIREN number.",
        "minLength": 1
      },
      "companyName": {
        "type": "string",
        "description": "Legacy company-name alias for data. Used when data is not provided.",
        "minLength": 1
      },
      "domain": {
        "type": "string",
        "description": "Legacy company-domain alias for data. Used when data is not provided.",
        "minLength": 1
      },
      "website": {
        "type": "string",
        "description": "Legacy company-website alias for data. Used when data is not provided.",
        "minLength": 1
      },
      "companyDomain": {
        "type": "string",
        "description": "Legacy company-domain alias for data. Used when data is not provided.",
        "minLength": 1
      },
      "companyKeyword": {
        "type": "string",
        "description": "Optional Datagma disambiguation keyword, such as founder, location, or industry.",
        "minLength": 1
      },
      "countryCode": {
        "type": "string",
        "description": "Optional Datagma country code to narrow matching.",
        "minLength": 1
      },
      "firstName": {
        "type": "string",
        "minLength": 1
      },
      "lastName": {
        "type": "string",
        "minLength": 1
      },
      "fullName": {
        "type": "string",
        "minLength": 1
      },
      "companyPremium": {
        "type": "boolean"
      },
      "companyFull": {
        "type": "boolean"
      },
      "companyFrench": {
        "type": "boolean"
      },
      "personFull": {
        "type": "boolean"
      },
      "phoneFull": {
        "type": "boolean"
      },
      "deepTraffic": {
        "type": "boolean"
      },
      "debug": {
        "type": "boolean"
      }
    },
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name             | Type     | Required | Default | Description |
| ---------------- | -------- | -------- | ------- | ----------- |
| `result.company` | `object` | No       |         |             |

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

  ### Output JSON Schema

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

## Advanced: Direct CLI

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

```bash theme={null}
deepline tools execute datagma_enrich_company --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`.
