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

# LeadMagic: Email Finder

> Find a verified work email from a person's first and last name plus company domain or company name. Includes SDK V2 examples, schemas, and cost.

Find a verified work email from a person's first and last name plus company domain or company name.

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

## 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(
  'leadmagic_email_finder',
  {
    "first_name": "Jane",
    "last_name": "Doe",
    "full_name": "Example",
    "domain": "example.com"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run leadmagic_email_finder --input '{
  "first_name": "Jane",
  "last_name": "Doe",
  "full_name": "Example",
  "domain": "example.com"
}'
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "email": "jane.doe@example.com",
    "status": "example",
    "message": "Example message"
  }
}
```

Use `deepline describe leadmagic_email_finder --json` for the latest machine-readable contract.

## Input reference

Forgiving on purpose: CRM synonyms and common misspellings are remapped server-side, and aliases apply only when the canonical field is absent. A LinkedIn person profile URL passed in a name field (first\_name/last\_name/full\_name) is remapped to profile\_url. The company can be given via domain aliases (company\_domain, website, url, companyUrl) or company\_name (company, organization, employer, businessName).

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.first_name` | `string` | No | — | First name of the person (optional if full\_name provided) |
| `payload.last_name` | `string` | No | — | Last name of the person (optional) |
| `payload.full_name` | `string` | No | — | Full name of the person (alternative to first\_name + last\_name) |
| `payload.profile_url` | `string` | No | — | LinkedIn person profile URL (alternative to a name. CRM synonym keys like linkedin\_url are accepted and normalized server-side) |
| `payload.domain` | `string` | No | — | Company domain name (required if company\_name not provided. aliases company\_domain, website, url accepted) |
| `payload.company_name` | `string` | No | — | Company name (required if domain not provided. aliases company, organization, employer accepted) |
| `payload.allow_domain_mismatch` | `boolean` | No | `false` | By default, an email found on a domain unrelated to the requested one is returned as a free not-found (`domain_mismatch: true`, `credits_consumed: 0`). Set to `true` to return that email instead, flagged `domain_mismatch: true` and charged like any other valid find. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Forgiving on purpose: CRM synonyms and common misspellings are remapped server-side, and aliases apply only when the canonical field is absent. A LinkedIn person profile URL passed in a name field (first_name/last_name/full_name) is remapped to profile_url. The company can be given via domain aliases (company_domain, website, url, companyUrl) or company_name (company, organization, employer, businessName).",
    "properties": {
      "first_name": {
        "type": "string",
        "description": "First name of the person (optional if full_name provided)"
      },
      "last_name": {
        "type": [
          "string",
          "null"
        ],
        "description": "Last name of the person (optional)"
      },
      "full_name": {
        "type": [
          "string",
          "null"
        ],
        "description": "Full name of the person (alternative to first_name + last_name)"
      },
      "profile_url": {
        "type": [
          "string",
          "null"
        ],
        "description": "LinkedIn person profile URL (alternative to a name; CRM synonym keys like linkedin_url are accepted and normalized server-side)"
      },
      "domain": {
        "type": "string",
        "description": "Company domain name (required if company_name not provided; aliases company_domain, website, url accepted)"
      },
      "company_name": {
        "type": "string",
        "description": "Company name (required if domain not provided; aliases company, organization, employer accepted)"
      },
      "allow_domain_mismatch": {
        "type": "boolean",
        "description": "By default, an email found on a domain unrelated to the requested one is returned as a free not-found (`domain_mismatch: true`, `credits_consumed: 0`). Set to `true` to return that email instead, flagged `domain_mismatch: true` and charged like any other valid find.",
        "default": false
      }
    },
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.email` | `string` | No | — | — |
| `result.data.status` | `string` | No | — | — |
| `result.data.message` | `string` | No | — | — |
| `result.data.first_name` | `string` | No | — | — |
| `result.data.last_name` | `string` | No | — | — |
| `result.data.domain` | `string` | No | — | — |
| `result.data.mx_record` | `string` | No | — | — |
| `result.data.mx_provider` | `string` | No | — | — |
| `result.data.mx_security_gateway` | `boolean` | No | — | — |
| `result.data.has_mx` | `boolean` | No | — | Whether the domain has MX records |
| `result.data.mx_records_full` | `array` | No | — | Complete list of MX records with priorities |
| `result.data.mx_records_full[].priority` | `integer` | No | — | — |
| `result.data.mx_records_full[].exchange` | `string` | No | — | — |
| `result.data.company_name` | `string` | No | — | — |
| `result.data.company_industry` | `string` | No | — | — |
| `result.data.company_size` | `string` | No | — | — |
| `result.data.company_founded` | `integer` | No | — | — |
| `result.data.company_location` | `object` | No | — | — |
| `result.data.company_location.name` | `string` | No | — | — |
| `result.data.company_location.locality` | `string` | No | — | — |
| `result.data.company_location.region` | `string` | No | — | — |
| `result.data.company_location.metro` | `string` | No | — | — |
| `result.data.company_location.country` | `string` | No | — | — |
| `result.data.company_location.continent` | `string` | No | — | — |
| `result.data.company_location.street_address` | `string` | No | — | — |
| `result.data.company_location.address_line_2` | `string` | No | — | — |
| `result.data.company_location.postal_code` | `string` | No | — | — |
| `result.data.company_location.geo` | `string` | No | — | — |
| `result.data.company_profile_url` | `string` | No | — | — |
| `result.data.company_profile_id` | `string` | No | — | — |
| `result.data.company_facebook_url` | `string` | No | — | — |
| `result.data.company_twitter_url` | `string` | No | — | — |
| `result.data.company_type` | `string` | No | — | — |
| `result.data.employment_verified` | `boolean \| null` | No | — | Whether the employment at the domain was verified |
| `result.data.requested_domain` | `string` | No | — | The domain that was searched. Present when the result is on a different domain. |
| `result.data.domain_mismatch` | `boolean` | No | — | True when the only email found is on a domain unrelated to `requested_domain`. Free not-found by default. returned and charged only with `allow_domain_mismatch: true`. |
| `result.meta` | `object` | 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.",
        "properties": {
          "email": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "first_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "domain": {
            "type": "string"
          },
          "mx_record": {
            "type": "string"
          },
          "mx_provider": {
            "type": "string"
          },
          "mx_security_gateway": {
            "type": "boolean"
          },
          "has_mx": {
            "type": "boolean",
            "description": "Whether the domain has MX records"
          },
          "mx_records_full": {
            "type": "array",
            "description": "Complete list of MX records with priorities",
            "items": {
              "type": "object",
              "properties": {
                "priority": {
                  "type": "integer"
                },
                "exchange": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          "company_name": {
            "type": "string"
          },
          "company_industry": {
            "type": "string"
          },
          "company_size": {
            "type": "string"
          },
          "company_founded": {
            "type": "integer"
          },
          "company_location": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "locality": {
                "type": "string"
              },
              "region": {
                "type": "string"
              },
              "metro": {
                "type": "string"
              },
              "country": {
                "type": "string"
              },
              "continent": {
                "type": "string"
              },
              "street_address": {
                "type": "string"
              },
              "address_line_2": {
                "type": "string"
              },
              "postal_code": {
                "type": "string"
              },
              "geo": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "company_profile_url": {
            "type": "string"
          },
          "company_profile_id": {
            "type": "string"
          },
          "company_facebook_url": {
            "type": "string"
          },
          "company_twitter_url": {
            "type": "string"
          },
          "company_type": {
            "type": "string"
          },
          "employment_verified": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether the employment at the domain was verified"
          },
          "requested_domain": {
            "type": "string",
            "description": "The domain that was searched. Present when the result is on a different domain."
          },
          "domain_mismatch": {
            "type": "boolean",
            "description": "True when the only email found is on a domain unrelated to `requested_domain`. Free not-found by default; returned and charged only with `allow_domain_mismatch: true`."
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

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

## Related documentation

* [Connect integrations](https://deepline.com/docs/integrations.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.