---
title: "Disconnect an integration"
method: DELETE
path: "/api/v1/integrations/{integrationId}"
tags: ["Integrations"]
---

# Disconnect an integration

`DELETE /api/v1/integrations/{integrationId}`

## Request

- Base URL: `https://app.khotan.com`
- URL: `https://app.khotan.com/api/v1/integrations/{integrationId}`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

Disconnects a mailbox: the stored credentials are revoked and the connection stops driving sync. This is permanent; reconnecting requires a fresh OAuth consent.

## Path parameters

- `integrationId` string, required

## Response `200`

The integration was disconnected.

- object
  - `deleted` true, required

## Other responses

- `401`: Authentication is missing or invalid.
- `404`: The resource was not found.
- `429`: Too many requests; retry after the indicated delay.

---

[API](https://skmtc.dev/khotan/apis/khotan-api.md) - [All operations](https://skmtc.dev/khotan/apis/khotan-api/llms.txt) - [OpenAPI document](https://skmtc.dev/khotan/apis/khotan-api/revisions/90b512a53e42?raw)
