---
title: "Connect"
method: POST
path: "/api/mailboxes"
---

# Connect

`POST /api/mailboxes`

## Request

- Base URL: `https://app.inboxmcp.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://app.inboxmcp.ai/api/mailboxes`
- Auth: none declared

## Headers

- `authorization` string, nullable

## Request body

- MailboxInput
  - `address` string, required
  - `provider` 'demo' | 'imap'
  - `platform` 'demo' | 'local' | 'grok' | 'chatgpt' | 'muse'
  - `host` string, nullable
  - `username` string, nullable
  - `password` string, nullable
  - `folder_mode` 'auto' | 'single'
  - `folder` string
  - `initial_backfill` boolean
  - `initial_recent` integer, nullable
  - `webhook_url` string, nullable
  - `webhook_secret` string, nullable

## Response `201`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/inboxmcp/apis/emailconnect.md) · [All operations](https://skmtc.dev/inboxmcp/apis/emailconnect/llms.txt) · [OpenAPI document](https://skmtc.dev/inboxmcp/apis/emailconnect/revisions/b432f864d7c5?raw)
