---
title: "List file-system entries"
method: GET
path: "/v1/resources/{resourceId}/files"
tags: ["Resources"]
---

# List file-system entries

`GET /v1/resources/{resourceId}/files`

List the entries of a workspace file system (file_system resources only). One directory level per call — pass `recursive` for the whole subtree. Cursor-paginated.

## Path parameters

- `resourceId` string, required — Resource identifier (ULID).

## Query parameters

- `path` string — Directory (or file) to list. Omit for the root.
- `recursive` boolean, nullable
- `cursor` string
- `limit` integer

## Response `200`

File-system entries

- object
  - `items` object[], required
    - `path` string, required — Path relative to the FS root.
    - `type` 'file' | 'dir', required
    - `sizeBytes` integer
    - `lastModified` string — ISO-8601 last-modified timestamp (files only).
  - `cursor` string — Opaque cursor — present when more entries exist.

## Other responses

- `401` — Unauthorized — missing or invalid credentials
- `403` — Forbidden — caller has no workspace or no access
- `404` — Resource not found
- `500` — Internal server error

---

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