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

# EmailGuard: Create Imapsmtpemail Account

> Connect an IMAP/SMTP mailbox to EmailGuard for deliverability monitoring and testing. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

Connect an IMAP/SMTP mailbox to EmailGuard for deliverability monitoring and testing.

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

## 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(
  'emailguard_create_imapsmtpemail_account',
  {
    "name": "Example",
    "provider": 123,
    "imap_username": "user@example.com",
    "imap_password": "YOUR_PASSWORD",
    "imap_host": "api.example.com",
    "imap_port": "example",
    "smtp_username": "user@example.com",
    "smtp_password": "YOUR_PASSWORD",
    "smtp_host": "api.example.com",
    "smtp_port": "example",
    "smtp_tls": "example"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute emailguard_create_imapsmtpemail_account --input '{
  "name": "Example",
  "provider": 123,
  "imap_username": "user@example.com",
  "imap_password": "YOUR_PASSWORD",
  "imap_host": "api.example.com",
  "imap_port": "example",
  "smtp_username": "user@example.com",
  "smtp_password": "YOUR_PASSWORD",
  "smtp_host": "api.example.com",
  "smtp_port": "example",
  "smtp_tls": "example"
}' --json
```

## 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": "example"
}
```

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

## Input reference

Creates a new IMAP/SMTP email account for the authenticated workspace.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.name` | `string` | Yes | — | The name for the email account. |
| `payload.provider` | `integer` | Yes | — | The provider for the authentication. |
| `payload.imap_username` | `string` | Yes | — | The username for IMAP authentication. |
| `payload.imap_password` | `string` | Yes | — | The password for IMAP authentication. |
| `payload.imap_host` | `string` | Yes | — | The host for IMAP |
| `payload.imap_port` | `string` | Yes | — | The port for IMAP |
| `payload.imap_tls` | `string` | No | — | optional The TLS for IMAP |
| `payload.smtp_username` | `string` | Yes | — | The username for SMTP authentication. |
| `payload.smtp_password` | `string` | Yes | — | The password for SMTP authentication. |
| `payload.smtp_host` | `string` | Yes | — | The host for SMTP. |
| `payload.smtp_port` | `string` | Yes | — | The port for SMTP. |
| `payload.smtp_tls` | `string` | Yes | — | The TLS for SMTP. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Creates a new IMAP/SMTP email account for the authenticated workspace.",
    "properties": {
      "name": {
        "type": "string",
        "description": "The name for the email account."
      },
      "provider": {
        "type": "integer",
        "description": "The provider for the authentication."
      },
      "imap_username": {
        "type": "string",
        "description": "The username for IMAP authentication."
      },
      "imap_password": {
        "type": "string",
        "description": "The password for IMAP authentication."
      },
      "imap_host": {
        "type": "string",
        "description": "The host for IMAP"
      },
      "imap_port": {
        "type": "string",
        "description": "The port for IMAP"
      },
      "imap_tls": {
        "type": "string",
        "description": "optional The TLS for IMAP"
      },
      "smtp_username": {
        "type": "string",
        "description": "The username for SMTP authentication."
      },
      "smtp_password": {
        "type": "string",
        "description": "The password for SMTP authentication."
      },
      "smtp_host": {
        "type": "string",
        "description": "The host for SMTP."
      },
      "smtp_port": {
        "type": "string",
        "description": "The port for SMTP."
      },
      "smtp_tls": {
        "type": "string",
        "description": "The TLS for SMTP."
      }
    },
    "required": [
      "name",
      "provider",
      "imap_username",
      "imap_password",
      "imap_host",
      "imap_port",
      "smtp_username",
      "smtp_password",
      "smtp_host",
      "smtp_port",
      "smtp_tls"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

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

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [EmailGuard provider guide](https://deepline.com/docs/providers/emailguard/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.