---
title: "Disconnect a member's computer"
method: POST
path: "/v1/org/computers/{deviceId}/disconnect"
tags: ["Devices"]
---

# Disconnect a member's computer

`POST /v1/org/computers/{deviceId}/disconnect`

## Request

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

Disconnects a current member's signed-in desktop from the organization. Den stops accepting that install as the member's computer at once: it gets no runner credential, takes no remote tasks, shares no sessions and its reports are refused with 403 computer_disconnected; work that was going through it is failed. Where Den knows the sign-in the desktop uses and it is not the one making this request, that sign-in is ended too (`signedOut`), so OpenWork there is signed out. The computer stays in the team list as disconnected; signing in on it again connects it again. Repeating the call changes nothing. A computer that never signs in, or whose owner is no longer a member (it is already refused; remove it instead), answers 409 not_disconnectable. Requires Devices and computers.disconnect with a recent sign-in. Grants no access to the computer.

## Path parameters

- `deviceId` string, typeid, required

## Response `200`

The computer, now disconnected, and whether its sign-in was ended.

- OrganizationComputerDisconnectResponse
  - `device` object, required
    - `id` string, required
    - `kind` 'desktop' | 'vm', required
    - `provider` 'openwork_desktop' | 'workbot' | 'freestyle' | 'daytona' | 'mac_host' | 'other', required
    - `source` 'desktop_app' | 'workbot' | 'manual', required
    - `platform` 'darwin' | 'win32' | 'linux', nullable, required
    - `label` string, required
    - `availability` 'online' | 'paused' | 'needs_setup' | 'offline' | 'unknown', required
    - `state` 'ready' | 'paused' | 'setup_required' | 'unavailable' | 'unknown', required
    - `statusDetail` string, nullable, required
    - `lastSeenAt` string, date-time, nullable, required
    - `createdAt` string, date-time, required
    - `appVersion` string, nullable, required
    - `computerId` string, nullable, required
    - `workbotChat` string, nullable, required
    - `workingSince` string, date-time, nullable
    - `canRemove` boolean
    - `disconnectedAt` string, date-time, nullable
    - `canDisconnect` boolean
    - `remoteAccess` RemoteDeviceAccess, nullable
      - `effective` 'off' | 'created' | 'all', required
      - `chosen` boolean, required
      - `reason` 'organization' | 'not_chosen' | 'update_required', nullable, required
    - `organization` object, required
      - `id` string, required
      - `name` string, required
    - `owner` object, nullable, required
      - `memberId` string, required
      - `name` string, nullable, required
      - `email` string, nullable, required
      - `former` boolean
    - `shared` boolean, required
    - `externalId` string, required
    - `removedAt` string, date-time, nullable, required
    - `recentProblems` integer, required
    - `lastEvent` object, nullable, required
      - `id` string, required
      - `type` 'registered' | 'renamed' | 'removed' | 'restored' | 'disconnected' | 'state_changed' | 'app_updated' | 'computer_changed' | 'viewer_opened' | 'paused' | 'resumed' | 'rebuilt' | 'continued' | 'failed', required
      - `level` 'info' | 'warning' | 'error', required
      - `message` string, required
      - `actor` 'member' | 'device' | 'workbot' | 'system', required
      - `createdAt` string, date-time, required
      - `data` object, nullable, required
      - `actorId` string, nullable, required
  - `signedOut` boolean, required

## Other responses

- `400`: Invalid filter or id.
- `401`: Sign in required.
- `403`: Disconnect team computers permission and a recent sign-in required.
- `404`: Computer not found, or Devices is off.
- `409`: This computer cannot be disconnected.

## Changes

- **2026-11-13** `11e5b2778c01`: 1 info
  - added the optional property `device/workingSince` to the response with the `200` status
- **2026-11-12** `6a596dec3f24`: 1 info
  - added the optional property `device/remoteAccess` to the response with the `200` status
- **2026-11-11** `db574b1fc0cf`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/org/computers/:deviceId/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/84fb0f99fb95?raw)
