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

# Enformion Workplace Search: Inputs, Cost & CLI Example

> Find phone numbers for SMB owners via self-reported B2B employment profiles. Includes inputs, outputs, costs, and Deepline CLI examples for GTM automation.

## 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=enformion_workplace_search:{"first_name":"{{first_name}}","last_name":"{{last_name}}"}' --json
```

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

## Input Schema

| Name                 | Type     | Required | Default | Description                                                             |
| -------------------- | -------- | -------- | ------- | ----------------------------------------------------------------------- |
| `payload.first_name` | `string` | Yes      |         | Owner first name.                                                       |
| `payload.last_name`  | `string` | Yes      |         | Owner last name. Middle initials are stripped automatically.            |
| `payload.city_state` | `string` | No       |         | City and state as "City, ST" (e.g. "Cleveland, OH"). Improves matching. |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Enformion Workplace Search: self-reported B2B employment profile database. Different database and separate rate-limit bucket from enformion_contact_enrich. phoneNumbers[] is reliable for phone recovery when skip-trace misses. IMPORTANT: emailAddresses[] is the owner's OTHER employer 97% of the time, only use if email domain matches the restaurant/business domain. galaxy-search-type: Workplace",
    "properties": {
      "first_name": {
        "type": "string",
        "description": "Owner first name.",
        "minLength": 1
      },
      "last_name": {
        "type": "string",
        "description": "Owner last name. Middle initials are stripped automatically.",
        "minLength": 1
      },
      "city_state": {
        "type": "string",
        "description": "City and state as \"City, ST\" (e.g. \"Cleveland, OH\"). Improves matching."
      }
    },
    "required": [
      "first_name",
      "last_name"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name                      | Type    | Required | Default | Description |
| ------------------------- | ------- | -------- | ------- | ----------- |
| `result.workplaceRecords` | `array` | Yes      |         |             |

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

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "workplaceRecords": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "fullName": {
              "type": "string"
            },
            "firstName": {
              "type": "string"
            },
            "lastName": {
              "type": "string"
            },
            "professionalTitles": {
              "type": "string"
            },
            "phoneNumbers": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "emailAddresses": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "currentEmployment": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "employer": {
                    "type": "string"
                  },
                  "jobTitle": {
                    "type": "string"
                  },
                  "level": {
                    "type": "string"
                  },
                  "department": {
                    "type": "string"
                  }
                },
                "required": [
                  "employer",
                  "jobTitle",
                  "level",
                  "department"
                ],
                "additionalProperties": true
              }
            }
          },
          "required": [
            "fullName",
            "firstName",
            "lastName",
            "professionalTitles",
            "phoneNumbers",
            "emailAddresses",
            "currentEmployment"
          ],
          "additionalProperties": true
        }
      }
    },
    "required": [
      "workplaceRecords"
    ],
    "additionalProperties": true
  }
  ```
</details>

## Advanced: Direct CLI

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

```bash theme={null}
deepline tools execute enformion_workplace_search --payload '{
  "first_name": "string",
  "last_name": "string"
}' --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: `7` per pricing unit.
* Billing mode: `post_deduct`.
