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

# Findymail Find From Domain: Inputs, Cost & CLI Example

> Try finding a contact with a valid email at a given domain with a given role. 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=findymail_find_from_domain:{"domain":"{{domain}}","roles":"{{roles}}"}' --json
```

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

## Input Schema

| Name                  | Type     | Required | Default | Description                                                                                                                                   |
| --------------------- | -------- | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| `payload.domain`      | `string` | Yes      |         | Email domain                                                                                                                                  |
| `payload.roles`       | `array`  | Yes      |         | Target roles related to the given domain (max 3 roles)                                                                                        |
| `payload.webhook_url` | `string` | No       |         | Webhook URL that will receive the result as callback. If submitted, search will happen in the background and notify this URL upon completion. |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Try finding a contact with a valid email at a given domain with a given role. A contact is only returned if we found a valid email. Due to the heavy processing involved (real-time search), this endpoint is limited to 5 concurrent requests (when used synchronously) and async jobs can take up to 24 hours to be processed depending on our workload (usually sooner).",
    "properties": {
      "domain": {
        "type": "string",
        "description": "Email domain"
      },
      "roles": {
        "type": "array",
        "description": "Target roles related to the given domain (max 3 roles)",
        "items": {
          "type": "string"
        }
      },
      "webhook_url": {
        "type": "string",
        "description": "Webhook URL that will receive the result as callback. If submitted, search will happen in the background and notify this URL upon completion."
      }
    },
    "required": [
      "domain",
      "roles"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name          | Type     | Required | Default | Description                                    |
| ------------- | -------- | -------- | ------- | ---------------------------------------------- |
| `result.data` | `object` | 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={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "contacts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "domain": {
                  "type": "string"
                },
                "email": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Advanced: Direct CLI

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

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