---
title: "List files in a session workspace with git change status"
method: GET
path: "/api/v1/sessions/{sessionId}/workspace/files"
tags: ["sessions"]
---

# List files in a session workspace with git change status

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

## Path parameters

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

## Response `200`

OK

- ListWorkspaceFilesResponse
  - `ahead` integer, nullable
  - `behind` integer, nullable
  - `commits` WorkspaceCommitSummary[], required
    - `author` string, required
    - `sha` string, required
    - `subject` string, required
    - `timestamp` string, date-time, required
  - `compareBaseRef` string
  - `compareBaseSha` string
  - `compareMode` 'base' | 'head_fallback'
  - `files` WorkspaceFileSummary[], required
    - `additions` integer, required
    - `binary` boolean, required
    - `deletions` integer, required
    - `path` string, required
    - `previousPath` string
    - `size` integer, required
    - `status` 'unmodified' | 'modified' | 'added' | 'deleted' | 'renamed', required
  - `sections` WorkspaceFileSections, required
    - `committed` WorkspaceFileSummary[], required
      - `additions` integer, required
      - `binary` boolean, required
      - `deletions` integer, required
      - `path` string, required
      - `previousPath` string
      - `size` integer, required
      - `status` 'unmodified' | 'modified' | 'added' | 'deleted' | 'renamed', required
    - `staged` WorkspaceFileSummary[], required
      - `additions` integer, required
      - `binary` boolean, required
      - `deletions` integer, required
      - `path` string, required
      - `previousPath` string
      - `size` integer, required
      - `status` 'unmodified' | 'modified' | 'added' | 'deleted' | 'renamed', required
    - `unstaged` WorkspaceFileSummary[], required
      - `additions` integer, required
      - `binary` boolean, required
      - `deletions` integer, required
      - `path` string, required
      - `previousPath` string
      - `size` integer, required
      - `status` 'unmodified' | 'modified' | 'added' | 'deleted' | 'renamed', required
    - `untracked` WorkspaceFileSummary[], required
      - `additions` integer, required
      - `binary` boolean, required
      - `deletions` integer, required
      - `path` string, required
      - `previousPath` string
      - `size` integer, required
      - `status` 'unmodified' | 'modified' | 'added' | 'deleted' | 'renamed', required
  - `sessionId` string, required
  - `summary` WorkspaceSummary, required
    - `additions` integer, required
    - `deletions` integer, required
    - `files` integer, required
  - `truncated` boolean, required

## Other responses

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

## Changes

- **2026-09-03** `d31a2d019c47` — 3 info
  - added the optional property `reporting_owner` to the response with the `404` status
  - added the optional property `reporting_owner` to the response with the `500` status
  - added the optional property `reporting_owner` to the response with the `501` status
- **2026-08-25** `14fb9cddd7ab` — 5 info
  - added the optional property `ahead` to the response with the `200` status
  - added the optional property `behind` to the response with the `200` status
  - added the required property `commits` to the response with the `200` status
  - added the required property `sections` to the response with the `200` status
  - …1 more
- **2026-07-31** `0d1e03674bc2` — 4 info
  - added the optional property `compareBaseRef` to the response with the `200` status
  - added the optional property `compareBaseSha` to the response with the `200` status
  - added the optional property `compareMode` to the response with the `200` status
  - added the optional property `files/items/previousPath` to the response with the `200` status
- **2026-07-18** `afa8f1f796c2` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/changes/api/v1/sessions/:sessionId/workspace/files/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/9d68955a2566/schema)
