# Email accounts

> Connect the mailboxes your campaigns send from: Gmail, Outlook or any SMTP/IMAP mailbox.

Every section below does the same job: in the dashboard (Guide), from your code (API) or through an AI assistant (MCP).

## Guide — In the dashboard

Source: /docs/engage/mailboxes/email-accounts

Campaigns send from your own mailboxes. Connect Gmail or Outlook, or any mailbox with SMTP and IMAP; each one shows its status and DNS checks.

<DemoFrame guide="mailboxes-email-accounts" to="/integrations/{workspace}?tab=email" />

1. **Integrations → Email Accounts → Add Mailbox.**
2. **Pick the provider** and follow the steps (Gmail needs an app password).
3. **Check the status** and deliverability of each mailbox.

### Every control on this screen [#every-control-on-this-screen]

Every button, field and switch, with what it does.

<ScreenControls screens={["integrations-email", "add-mailbox", "email-account-settings", "email-account-connected"]} />


---

## API — From your code

Source: /docs/engage/mailboxes/email-accounts/api

Authenticated with `?privateKey=YOUR_KEY` (see [Authentication](/docs/authentication)).

<Endpoints ops={["GET /admin/email-accounts", "POST /admin/email-accounts", "GET /admin/email-accounts/{id}", "PUT /admin/email-accounts", "DELETE /admin/email-accounts/{id}", "POST /admin/email-accounts-test", "GET /admin/email-providers", "POST /v3/mailboxes/{emailAccountId}/rename", "POST /v3/mailboxes/{emailAccountId}/reconnect", "POST /v3/mailboxes/{emailAccountId}/unmark-spam", "DELETE /v3/mailboxes/{emailAccountId}/tracking-domain"]} />

<ApiPlayground
  ops={["GET /admin/email-accounts", "POST /admin/email-accounts", "GET /admin/email-accounts/{id}", "PUT /admin/email-accounts", "DELETE /admin/email-accounts/{id}", "POST /admin/email-accounts-test", "GET /admin/email-providers", "POST /v3/mailboxes/{emailAccountId}/rename", "POST /v3/mailboxes/{emailAccountId}/reconnect", "POST /v3/mailboxes/{emailAccountId}/unmark-spam", "DELETE /v3/mailboxes/{emailAccountId}/tracking-domain"]}
  method="get"
  path="/admin/email-accounts"
  tool="list_email_accounts"
  args={`{
  "websiteId": "64b7f0a1c2d3e4f5a6b7c8d9"
}`}
/>

### Use case: Connect a mailbox from your app [#use-case-connect-a-mailbox-from-your-app]

Get the settings with `GET /admin/email-providers?email=…`, test them with `POST /admin/email-accounts-test`, then `POST /admin/email-accounts`.


---

## MCP — AI agents

Source: /docs/engage/mailboxes/email-accounts/mcp

Connect the [MCP server](/docs/mcp#quickstart), then just ask.

<Tools names={["list_email_accounts", "add_email_account", "get_email_account_stats", "delete_email_account", "test_email_account", "list_email_providers", "get_email_account", "update_email_account", "rename_email_account", "reconnect_email_account", "unmark_email_account_spam", "remove_tracking_domain"]} />

### Use case [#use-case]

> Which of my mailboxes are disconnected?

<McpToolCall name="list_email_accounts">

```json
{
  "websiteId": "64b7f0a1c2d3e4f5a6b7c8d9"
}
```

</McpToolCall>

