---
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

## Changes

- **2026-09-25** `5abada71ceae` — 52 warning
  - added the new `IDENTITY_ALREADY_LINKED` enum value to the `errorCode` response property for the response status `401`
  - added the new `IDENTITY_ALREADY_LINKED` enum value to the `errorCode` response property for the response status `403`
  - added the new `IDENTITY_ALREADY_LINKED` enum value to the `errorCode` response property for the response status `404`
  - added the new `IDENTITY_ALREADY_LINKED` enum value to the `errorCode` response property for the response status `500`
  - …48 more
- **2026-09-23** `fadab791136c` — 4 warning
  - added the new `X402_UNBOUNDED_PRICE` enum value to the `errorCode` response property for the response status `401`
  - added the new `X402_UNBOUNDED_PRICE` enum value to the `errorCode` response property for the response status `403`
  - added the new `X402_UNBOUNDED_PRICE` enum value to the `errorCode` response property for the response status `404`
  - added the new `X402_UNBOUNDED_PRICE` enum value to the `errorCode` response property for the response status `500`
- **2026-09-11** `9874d9e34fcf` — 4 info
  - added the optional property `errorCode` to the response with the `401` status
  - added the optional property `errorCode` to the response with the `403` status
  - added the optional property `errorCode` to the response with the `404` status
  - added the optional property `errorCode` to the response with the `500` status

[Change history](https://skmtc.dev/monid/apis/monid-api/changes/v1/resources/:resourceId/files/get.md)

---

[API](https://skmtc.dev/monid/apis/monid-api.md) · [All operations](https://skmtc.dev/monid/apis/monid-api/llms.txt) · [OpenAPI document](https://skmtc.dev/monid/apis/monid-api/revisions/5abada71ceae?raw)
