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

# List session files

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

Lists files created by the agent in the sandbox workspace. Only available while the sandbox is running.

## 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` — Sandbox is not running — files are no longer available

---

[API](https://skmtc.net/casemark/apis/case-dev-api.md) · [All operations](https://skmtc.net/casemark/apis/case-dev-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/casemark/case-dev-api/versions/5b7e64e6d6f9/schema)
