---
title: "Get the status of remote sessions"
method: POST
path: "/v1/remote-sessions/status"
tags: ["Automations"]
---

# Get the status of remote sessions

`POST /v1/remote-sessions/status`

## Request

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

Returns the compact status of up to ten of the member's remote sessions: Cloud sessions by sessionId, desktop and registered client tasks by commandId. Pass each version received; an unchanged session returns only its ref and version. waitMs holds the call until one changes or every one has settled. Same result as the remote-session:status capability.

## Request body

- RemoteSessionStatusRequest
  - `threads` object[], required
    - `commandId` string
    - `sessionId` string
    - `version` string
  - `waitMs` integer

## Response `200`

The status of each session.

- RemoteSessionStatusResult
  - `threads` union[], required
    - union
      - object
        - `ref` string, required
        - `changed` true, required
        - `version` string, required
        - `target` 'cloud' | 'desktop', required
        - `state` 'starting' | 'running' | 'waiting' | 'idle' | 'error', required
        - `waitingFor` 'permission' | 'question', nullable, required
        - `title` string, nullable, required
        - `computerId` string, nullable, required
        - `computerLabel` string, nullable, required
        - `sessionId` string, nullable, required
        - `workspaceId` string, nullable, required
        - `messageCount` integer, nullable, required
        - `preview` string, nullable, required
        - `latestStep` string, nullable
        - `error` object, nullable, required
          - `code` string, required
          - `message` string, required
        - `observedAt` integer, nullable, required
        - `pending` union
          - object
            - `kind` 'question', required
            - `requestId` string, required
            - `question` string, required
            - `options` string[], required
            - `multiple` boolean, required
            - `custom` boolean, required
            - `questionCount` integer, required
          - object
            - `kind` 'permission', required
            - `requestId` string, required
            - `title` string, required
      - object
        - `ref` string, required
        - `changed` false, required
        - `version` string, required
        - `stale` boolean
  - `retryAfterMs` integer, nullable, required

## 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-30** `4324c5a1ad42`: 2 info
  - added the optional property `threads/items/oneOf[subschema #1]/latestStep` to the response with the `200` status
  - added the optional property `threads/items/oneOf[subschema #1]/pending` to the response with the `200` 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/status/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)
