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

# List files

`GET /files`

## Request

- Base URL: `https://www.dench.com/api/v1`
- URL: `https://www.dench.com/api/v1/files`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

List workspace files.

## Query parameters

- `prefix` string: Directory path, defaults to /.
- `slug` string

## Response `200`

Successful response

- object[]
  - `_id` string, required
  - `_creationTime` number, required
  - `path` string, required
  - `parentPath` string, required
  - `isDir` boolean, required
  - `size` number
  - `mtime` number
  - `contentHash` string
  - `storageId` string
  - `lastModifiedBy` string
  - `virtual` boolean: True for synthesized magic files (IDENTITY.md etc.).

## Other responses

- `400`: Invalid request
- `401`: Missing or invalid authentication
- `404`: Operation or resource not found
- `500`: Server error

---

[API](https://skmtc.dev/dench/apis/dench-api.md) - [All operations](https://skmtc.dev/dench/apis/dench-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dench/apis/dench-api/revisions/4a145b38f19c?raw)
