---
title: "Disconnect one of my computers"
method: POST
path: "/v1/remote-devices/{deviceId}/disconnect"
tags: ["Devices"]
---

# Disconnect one of my computers

`POST /v1/remote-devices/{deviceId}/disconnect`

## Request

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

Disconnects the caller's own signed-in desktop from the organization. Den stops accepting that install as their 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 list as disconnected; signing in on it again connects it again. Repeating the call changes nothing. Someone else's computer answers 404; a computer that never signs in (a virtual computer, Workbot's) answers 409 not_disconnectable. Needs a signed-in session and the Devices feature.

## Path parameters

- `deviceId` string, typeid, required

## Response `200`

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

- RemoteDeviceDisconnectResponse
  - `device` RemoteDevice, 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
    - `access` 'mine' | 'shared', 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
    - `canRename` boolean, required
    - `canRemove` boolean, required
    - `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
  - `signedOut` boolean, required

## Other responses

- `400`: Invalid computer id.
- `401`: Authentication required.
- `403`: API keys and agents cannot disconnect a computer.
- `404`: No such computer for this member, or Devices is off for the organization.
- `409`: This computer never signs in, so there is nothing to disconnect.

## 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/remote-devices/: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)
