---
title: "List one directory level of a session workspace's full file tree, git-status decorated"
method: GET
path: "/api/v1/sessions/{sessionId}/workspace/tree"
tags: ["sessions"]
---

# List one directory level of a session workspace's full file tree, git-status decorated

`GET /api/v1/sessions/{sessionId}/workspace/tree`

## Path parameters

- `sessionId` string, required — Session identifier, e.g. project-1.

## Query parameters

- `path` string — Directory path relative to the session workspace root. Empty or omitted lists the root.

## Response `200`

OK

- ListWorkspaceTreeResponse
  - `entries` WorkspaceTreeEntry[], required
    - `binary` boolean
    - `hasChanges` boolean
    - `name` string, required
    - `path` string, required
    - `size` integer
    - `status` 'unmodified' | 'modified' | 'added' | 'deleted' | 'renamed'
    - `type` 'file' | 'dir', required
  - `path` string, required
  - `sessionId` string, required
  - `truncated` boolean, required

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `500` — Internal Server Error
- `501` — Not Implemented

## Changes

- **2026-08-27** `8482eedef0b1` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/changes/api/v1/sessions/:sessionId/workspace/tree/get.md)

---

[API](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon.md) · [All operations](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/composiohq/agent-orchestrator-http-daemon/revisions/dbac6f893348/schema)
