---
title: "List session files"
method: GET
path: "/agent/v2/chat/{id}/files"
tags: ["Agents"]
---

# List session files

`GET /agent/v2/chat/{id}/files`

Lists files created by the agent in the Daytona runtime workspace. Stopped or archived runtimes are transparently resumed or recovered.

## Path parameters

- `id` string, required

## Response `200`

File listing

- object
  - `chatId` string
  - `files` object[]
    - `path` string — Relative path from /workspace
    - `name` string
    - `sizeBytes` integer

## Other responses

- `401` — Invalid API key
- `403` — No agent access
- `404` — Chat not found
- `410` — Chat runtime has ended — files are no longer available

## Changes

- **2026-03-27** `220d723a75ba` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/casemark/apis/case-dev-api/changes/agent/v2/chat/:id/files/get.md)

---

[API](https://skmtc.dev/casemark/apis/case-dev-api.md) · [All operations](https://skmtc.dev/casemark/apis/case-dev-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/casemark/case-dev-api/revisions/2a016c5bb11e/schema)
