---
title: "GET /v1/chat/rooms/{roomId}/command-state"
method: GET
path: "/v1/chat/rooms/{roomId}/command-state"
tags: ["chat"]
---

# GET /v1/chat/rooms/{roomId}/command-state

`GET /v1/chat/rooms/{roomId}/command-state`

## Request

- Base URL: `https://app.legend.trade/api/rest`
- URL: `https://app.legend.trade/api/rest/v1/chat/rooms/{roomId}/command-state`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/legend/apis/legend-api/docs/v1/chat/rooms/:roomId/command-state/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `roomId` string, uuid, required

## Query parameters

- `expectedUserId` string, uuid, required

## Response `200`

Successful response

- object
  - `readVersion` string, uuid, nullable, required
  - `draftVersion` string, uuid, nullable, required

## Other responses

- `400`: Invalid input data
- `401`: Authorization not provided
- `403`: Insufficient access
- `404`: Not found
- `500`: Internal server error

## Changes

> 110 revisions in range; 1 not diffed.

- **2026-11-04** `db819a090f3f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/legend/apis/legend-api/changes/v1/chat/rooms/:roomId/command-state/get.md)

---

[API](https://skmtc.dev/legend/apis/legend-api.md) - [All operations](https://skmtc.dev/legend/apis/legend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/legend/apis/legend-api/revisions/e7dbec738069?raw)
