---
title: "Disconnect connector account"
method: POST
path: "/v1/connector-accounts/{connectorAccountId}/disconnect"
tags: ["Connectors"]
---

# Disconnect connector account

`POST /v1/connector-accounts/{connectorAccountId}/disconnect`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/connector-accounts/{connectorAccountId}/disconnect`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Disconnects a connector account and cleans up all associated connector-managed records.

## Path parameters

- `connectorAccountId` string, typeid, required

## Request body

- object
  - `reason` string

## Response `200`

Connector account disconnected and cleaned up successfully.

- PluginArchConnectorAccountDisconnectResponse
  - `ok` true, required
  - `item` object, required
    - `deletedConfigObjectCount` integer, required
    - `deletedConnectorInstanceCount` integer, required
    - `deletedConnectorMappingCount` integer, required
    - `disconnectedAccountId` string, typeid, required: Den TypeID with 'cac_' prefix and a 26-character base32 suffix.
    - `reason` string, nullable, required

## Other responses

- `400`: The connector account disconnect request was invalid.
- `401`: The caller must be signed in to manage connector accounts.
- `403`: The caller lacks permission to manage connector accounts.
- `404`: The connector account could not be found.

## Changes

- **2026-10-01** `df3754993784`: 1 info
  - added the optional property `message` to the response with the `400` status
- **2026-09-11** `bb8ff73e4ad3`: 2 info
  - the endpoint scheme security `bearerAuth` was added to the API
  - the endpoint scheme security `denApiKey` was added to the API
- **2026-09-04** `d3984673ccd1`: 1 info
  - added the optional property `capability` to the response with the `400` status
- **2026-08-20** `93df40e2efd5`: 2 info
  - removed the pattern `^cac_.*` from the `path` request parameter `connectorAccountId`
  - the `item/disconnectedAccountId` response's property pattern `^cac_.*` was removed for the status `200`

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/connector-accounts/:connectorAccountId/disconnect/post.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) · [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) · [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/6f14480abdb9?raw)
