---
title: "List a directory"
method: GET
path: "/api/v1/computers/{computer_id}/files/list"
tags: ["computers"]
---

# List a directory

`GET /api/v1/computers/{computer_id}/files/list`

## Request

- Base URL: `https://api.maritime.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://api.maritime.sh/api/v1/computers/{computer_id}/files/list`
- Auth: HTTP bearer

## Path parameters

- `computer_id` string, required

## Query parameters

- `path` string, required

## Response `200`

Successful Response

- FileListOut
  - `path` string, required
  - `entries` FileEntry[], required
    - `name` string, required
    - `size` integer, required
    - `isDir` boolean, required
    - `mtime` number, nullable

## Other responses

- `402`: Plan or quota refusal
- `409`: A person is in control of the computer
- `422`: Validation Error
- `503`: Computers disabled or no capacity

---

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