# Deep Email Check — Defastra

> Performs a risk analysis on a given email address and provides a risk score indicating if the email is disposable, risky, or safe. See the documentation

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

## Description

Performs a risk analysis on a given email address and provides a risk score indicating if the email is disposable, risky, or safe. [See the documentation](https://docs.defastra.com/reference/deep-email-check)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `timeout` | `string` | No | The timeout parameters allows you to control the response time of the check, allowing you to choose between more detailed results and faster response times. Please read this guide. |
| `label` | `string` | No | A label is any string of text (max. 100 char) that can be attributed to any lookup. They are useful for organizing your data and can be used to search for data in the Observer, or visualize them on the dashboard. |
| `email` | `string` | Yes | The email address to perform the risk analysis on. |

## 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": "defastra",
      },
    },
  },
)

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: "defastra-deep-email-check",
  arguments: {
    timeout: "Timeout",
    label: "Label",
  },
})
```

**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: "defastra-deep-email-check",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    defastra: { authProvisionId: "apn_xxxxxxx" },
    timeout: "Timeout",
    label: "Label",
  },
})

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": "defastra-deep-email-check",
    "configured_props": {
      "defastra": { "authProvisionId": "apn_xxxxxxx" },
      "timeout": "Timeout",
      "label": "Label"
    }
  }'
```

---

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