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

# Download session file

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

Downloads a file from the sandbox workspace by path. Only available while the sandbox is running.

## Path parameters

- `id` string, required
- `filePath` string, required

## Response `200`

File contents

## Other responses

- `400` — Missing file path
- `401` — Invalid API key
- `403` — No agent access
- `404` — Chat or file 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)
