# Find Email — GetEmails

> Provide Full name of your prospect with Domain or Website and Api will provide you an email address of the prospect in response. See the documentation.

- Key: `getemails-find-email`
- Type: Action (Read-only)
- Version: 0.0.4
- App: GetEmails (`getemails`) — https://pipedream.com/apps/getemails.md
- This page (HTML): https://pipedream.com/apps/getemails/actions/find-email
- Hints: read-only · open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/getemails/actions/find-email/find-email.mjs

## Description

Provide Full name of your prospect with Domain or Website and Api will provide you an email address of the prospect in response.  [See the documentation](https://app2.getemail.io/dash/integration/api/v2/1#).

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `fullname` | `string` | Yes | Full name of your prospect |
| `domain` | `string` | Yes | Domain or Company name of prospect. eg- Microsoft.com or Microsoft |
| `isEnrichToDo` | `boolean` | No | Pass isEnrichToDo flag as true when you want to find additional information about prospect. NOTE- Passing isEnrichToDo flag as true will take some more time than usual. |

## Run it

**MCP**

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "getemails",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "getemails-find-email",
  arguments: {
    fullname: "Full Name",
    domain: "Domain",
  },
})
```

**TypeScript**

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "getemails-find-email",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    getemails: { authProvisionId: "apn_xxxxxxx" },
    fullname: "Full Name",
    domain: "Domain",
  },
})

console.log(result)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "getemails-find-email",
    "configured_props": {
      "getemails": { "authProvisionId": "apn_xxxxxxx" },
      "fullname": "Full Name",
      "domain": "Domain"
    }
  }'
```

---

- App: https://pipedream.com/apps/getemails.md · All apps: https://pipedream.com/apps
