Disconnect Mailbox
Disconnect the mailbox at the provider; it stays listed with ``include_disconnected``.
API key access
mailboxes:write scope with an API key (ro_pat_...). A signed-in session uses the caller's role./api/v1/mailboxes/{mailbox_id}Access token from /api/v1/auth/login, or an API key (ro_pat_..., RO-176) from /api/v1/workspaces/current/api-keys: the key implies its workspace and needs the route's scope. MCP connectors (/api/v1/mcp only) may use an OAuth access token (ro_oat_..., RO-284).
In: header
Path Parameters
uuidHeader Parameters
Id of the workspace to act on (must be a member).
Response Body
curl -X DELETE "http://localhost:8000/api/v1/mailboxes/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "X-Workspace-Id: string"{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Connect Mailbox
Start connecting a Gmail/Outlook/IMAP mailbox: returns the provider's hosted-auth URL. When the user finishes, the provider calls ``/mailboxes/connect/callback`` and the mailbox appears in the list. Pass ``mailbox_id`` to reconnect an existing mailbox. The browser is then sent to ``{WEB_BASE_URL}/app/settings/mailboxes`` (or ``/app/onboarding`` with ``return_to: onboarding``) with ``?connected=1`` on success or ``?connected=0`` on failure.
Get Deliverability
Sender health: a 0-100 score per mailbox (hard-bounce and complaint rates over the deliverability guard's window, pause, connection) and per sending domain (its mailboxes plus its last SPF / DKIM / DMARC / MX check), today's sends against the (warmup) cap.