---
title: "Unlink a Gmail inbox"
method: POST
path: "/mailboxes/{mailboxId}/disconnect"
tags: ["Mailboxes"]
---

# Unlink a Gmail inbox

`POST /mailboxes/{mailboxId}/disconnect`

## Request

- Base URL: `https://api.mobilerun.ai`
- URL: `https://api.mobilerun.ai/mailboxes/{mailboxId}/disconnect`
- Auth: HTTP bearer

Removes only this mailbox link. The Gmail connection used by your agents stays in place.

## Path parameters

- `mailboxId` string, uuid, required

## Response `200`

Gmail mailbox unlinked

- object
  - `data` Mailbox, required
    - `id` string, uuid, required
    - `provider` 'matix' | 'gmail', required
    - `domainId` string, uuid, nullable, required
    - `address` string, nullable, required
    - `label` string, nullable, required
    - `status` 'provisioning' | 'awaiting_payment' | 'active' | 'cancel_scheduled' | 'archived' | 'billing_error' | 'pending_connection' | 'connection_expired' | 'connection_removed', required
    - `billingMode` 'rent' | 'included' | 'domain' | 'external', required
    - `cancelAtPeriodEnd` boolean, required
    - `checkoutUrl` string, nullable, required
    - `checkoutExpiresAt` string, date-time, nullable, required
    - `currentPeriodEnd` string, date-time, nullable, required
    - `createdAt` string, date-time, required
    - `inboundMessages` MailboxInboundMessagesUsage, required
      - `used` integer, required
      - `included` integer, required
      - `exhausted` boolean, required
      - `resetsAt` string, date-time, nullable, required

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found
- `500`: Internal Server Error
- `503`: Mailboxes disabled

## Changes

- **2026-10-21** `559a12449213`: 2 warning
  - added the new `integration_forbidden` enum value to the `code` response property for the response status `503`
  - added the new `provider_error` enum value to the `code` response property for the response status `503`
- **2026-10-16** `4ad548c528a8`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/droidrun/apis/droidrun-cloud/changes/mailboxes/:mailboxId/disconnect/post.md)

---

[API](https://skmtc.dev/droidrun/apis/droidrun-cloud.md) - [All operations](https://skmtc.dev/droidrun/apis/droidrun-cloud/llms.txt) - [OpenAPI document](https://skmtc.dev/droidrun/apis/droidrun-cloud/revisions/1cc95586c933?raw)
