---
title: "Stop a remote session"
method: POST
path: "/v1/remote-sessions/stop"
tags: ["Automations"]
---

# Stop a remote session

`POST /v1/remote-sessions/stop`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/remote-sessions/stop`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Stops one of the member's running remote sessions. For a desktop session pass messageId, the latest user turn, so a newer turn is never stopped. Same result as the remote-session:stop capability.

## Request body

- object
  - `sessionId` string, required
  - `workspaceId` string
  - `messageId` string

## Response `200`

Whether the session stopped, or a pending requestId.

- RemoteSessionResult

## Other responses

- `400`: The request or its arguments were invalid.
- `401`: Authentication required.
- `404`: The task is unknown or the organization was not found.
- `409`: The task cannot do that now. remote_access_off: the computer takes nothing from other devices (its owner's choice, no choice yet under the organization's opt-in, or the organization's ceiling); the message says who can allow it.
- `503`: The computer or cloud workspace that runs the task can't be reached right now; retry.

## Changes

- **2026-10-30** `a77c5a5943bf`: 1 breaking, 3 info
  - the response's body type changed from no type to `object` for status `404`
  - removed `#/components/schemas/NotFoundError, subschema #2` from the response body `anyOf` list for the response status `404`
  - added the optional property `message` to the response with the `404` status
  - added the required property `error` to the response with the `404` status
- **2026-10-23** `c93387179b31`: 1 info
  - response property `anyOf[#/components/schemas/InvalidRequestError]/details/items/path/items/` list-of-types was narrowed by removing types `number` from media type `application/json` of response `400`
- **2026-10-16** `f6900cd079e7`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/remote-sessions/stop/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)
