---
title: "List storage files"
method: GET
path: "/api/v1/storage/files"
tags: ["storage"]
---

# List storage files

`GET /api/v1/storage/files`

Lists files and directories under an advertised storage root. The optional path is always relative to the selected root; rooted paths, `..` traversal segments, and symlink/reparse-point traversal are rejected. Absolute on-device paths are not returned. Omit `root` to use the default `appData` root.

## Query parameters

- `root` string
- `path` string

## Response `200`

Directory listing.

- FileListResponse — unresolved $ref

## Other responses

- `400` — Invalid or unsafe storage path or unavailable storage root.
- `500` — Internal server error.

---

[API](https://skmtc.dev/dotnet/apis/devflow-agent-protocol.md) · [All operations](https://skmtc.dev/dotnet/apis/devflow-agent-protocol/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dotnet/devflow-agent-protocol/revisions/31dec8eed3de/schema)
