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

# Icypeas: Email Search

> Find a person's work email from first and last name plus company domain or company name. waits for the final result by default.

Find a person's work email from first and last name plus company domain or company name. waits for the final result by default.

> [!NOTE]
>
> Tool ID: `icypeas_email_search`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'icypeas_email_search',
  {
    "domainOrCompany": "example.com"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute icypeas_email_search --input '{
  "domainOrCompany": "example.com"
}' --json
```

## Example response

The static output schema lacks the details for a reliable example. Use `deepline describe icypeas_email_search --json` for the complete live contract.

## Input reference

Find a professional email for a person at a company. Waits for the final result by default.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.firstname` | `string` | No | — | First name of the person. |
| `payload.lastname` | `string` | No | — | Last name of the person. |
| `payload.domainOrCompany` | `string` | Yes | — | Company domain or name (for example stripe.com). |
| `payload.wait_for_completion` | `boolean` | No | `true` | When true, poll Icypeas until the email search finishes, up to max\_wait\_ms. If it is still pending, return running with the search id. |
| `payload.poll_interval_ms` | `integer` | No | `2000` | Polling interval in milliseconds when wait\_for\_completion is true. Minimum: 250. Maximum: 10000. |
| `payload.max_wait_ms` | `integer` | No | `30000` | Maximum time to wait for Icypeas to finish before returning the latest async result as running. Larger values are clamped to the Deepline async sync-wait ceiling. Minimum: 1000. Maximum: 120000. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Find a professional email for a person at a company. Waits for the final result by default.",
    "properties": {
      "firstname": {
        "type": "string",
        "description": "First name of the person.",
        "aliases": [
          "first_name"
        ]
      },
      "lastname": {
        "type": "string",
        "description": "Last name of the person.",
        "aliases": [
          "last_name"
        ]
      },
      "domainOrCompany": {
        "type": "string",
        "description": "Company domain or name (for example stripe.com).",
        "aliases": [
          "domain",
          "company_domain",
          "company",
          "company_name"
        ]
      },
      "wait_for_completion": {
        "type": "boolean",
        "description": "When true, poll Icypeas until the email search finishes, up to max_wait_ms. If it is still pending, return running with the search id.",
        "default": true
      },
      "poll_interval_ms": {
        "type": "integer",
        "description": "Polling interval in milliseconds when wait_for_completion is true.",
        "default": 2000,
        "minimum": 250,
        "maximum": 10000
      },
      "max_wait_ms": {
        "type": "integer",
        "description": "Maximum time to wait for Icypeas to finish before returning the latest async result as running. Larger values are clamped to the Deepline async sync-wait ceiling.",
        "default": 30000,
        "minimum": 1000,
        "maximum": 120000
      }
    },
    "required": [
      "domainOrCompany"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `record` | 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={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "additionalProperties": {}
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": {}
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `per_result` (per result).
* Estimated Deepline credits: `0.14` per pricing unit.

## Related documentation

* [Icypeas provider guide](https://deepline.com/docs/providers/icypeas/guide.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.