---
title: "List files in an application directory"
method: GET
path: "/v2/apps/{appId}/files"
tags: ["File Manager"]
---

# List files in an application directory

`GET /v2/apps/{appId}/files`

Lists files and directories at the requested `path`. Defaults to the application root when no `path` is given.

Requires the workspace Maintainer or Administrator role (or ownership) when called against a workspace-shared application.

## Path parameters

- `appId` string, required

## Query parameters

- `path` string

## Response `200`

Directory listing.

- object
  - `status` 'success', required
  - `response` FileEntry[], required
    - `name` string, required — File or directory name (no path component).
    - `type` 'file' | 'directory', required
    - `size` integer, required — Size in bytes. `0` for directories.
    - `lastModified` integer, required — Last-modified time as a Unix timestamp in milliseconds.

## Other responses

- `400` — Path validation failed or the directory could not be read.
- `401` — The Authorization header is missing, malformed, or the credentials are not valid.
- `403` — The workspace member does not have the required permission for this endpoint.
- `404` — The target application could not be found, or the caller is not a member of the workspace.
- `429` — The authenticated user or API key exceeded the global request budget.
- `500` — An unexpected error occurred while processing the request.

---

[API](https://skmtc.dev/squarecloud/apis/square-cloud-api.md) · [All operations](https://skmtc.dev/squarecloud/apis/square-cloud-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/squarecloud/square-cloud-api/revisions/54b7733a6b95/schema)
