---
title: "[Deprecated] List files in a site installation."
method: GET
path: "/v1/sites/{id}/files"
tags: ["Files"]
---

# [Deprecated] List files in a site installation.

`GET /v1/sites/{id}/files`

[Deprecated] - Use 'List Site Files'  (/v1/sites/:id/file_manager/files) instead

## Path parameters

- `id` integer, required — ID of the Site you are interacting with

## Query parameters

- `path` string

## Response `200`

OK

- ListFilesResponse
  - `success` boolean — whether the request succeeded
  - `errors` string[]
  - `messages` string[], nullable
  - `result` object
    - `files` object[]
      - `humansize` string — File size in human readable(-ish) form
      - `file` string — Name of the file
      - `fullpath` string — Full path to the file
      - `ctime` integer — Time the file was created (unix time)
      - `absdir` string — Absolute path to the file
      - `size` integer — File size in bytes
      - `nicemode` string — Human readable linux file permissions
      - `type` 'dir' | 'file' — Type of file/directory
      - `path` string — path to the file
      - `mtime` integer — Time the file was last modified (unix time)
    - `totals` object
      - `files` integer — Number of files
      - `folders` integer — Number of folders

## Other responses

- `400` — Bad Request
- `401` — Authentication failed
- `403` — Not authorized to access endpoint
- `404` — Given site not found for user
- `405` — Invalid input
- `500` — Internal error

---

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