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

# Prospeo Bulk Enrich Company: Inputs, Cost & CLI Example

> Fast batch company enrichment (up to 50 company records) with higher throughput than single enrich. 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=prospeo_bulk_enrich_company:{"data":"{{data}}"}' --json
```

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

## Input Schema

| Name           | Type    | Required | Default | Description |
| -------------- | ------- | -------- | ------- | ----------- |
| `payload.data` | `array` | Yes      |         |             |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Bulk company enrichment over up to 50 companies in one request.",
    "properties": {
      "data": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "identifier": {
              "type": "string",
              "description": "Client-side identifier used to correlate request item with response item."
            },
            "company_website": {
              "type": "string",
              "description": "Company website domain."
            },
            "website": {
              "type": "string",
              "description": "Alias accepted by Deepline; sent to Prospeo as company_website."
            },
            "company_name": {
              "type": "string",
              "description": "Company name."
            },
            "company_linkedin_url": {
              "type": "string",
              "description": "Company LinkedIn URL."
            },
            "linkedin_url": {
              "type": "string",
              "description": "Alias accepted by Deepline; sent to Prospeo as company_linkedin_url."
            },
            "company_id": {
              "type": "string",
              "description": "Company ID from a previous enrichment result."
            }
          },
          "required": [
            "identifier"
          ],
          "additionalProperties": false
        }
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name          | Type     | Required | Default | Description                                    |
| ------------- | -------- | -------- | ------- | ---------------------------------------------- |
| `result.data` | `object` | 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={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "error": {
            "type": "boolean"
          },
          "total_cost": {
            "type": "number"
          },
          "not_matched": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "invalid_datapoints": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "matched": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "identifier": {
                  "type": "string"
                },
                "company": {
                  "type": "object",
                  "description": "Prospeo company record.",
                  "properties": {
                    "company_id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "website": {
                      "type": "string"
                    },
                    "domain": {
                      "type": "string"
                    },
                    "linkedin_url": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                }
              },
              "required": [
                "identifier"
              ],
              "additionalProperties": false
            }
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": {}
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Advanced: Direct CLI

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

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