Skip to main content
GET
List application files
string
required
The API key for your account. You can find this in your account settings.
Requires an API key with the files:read scope. List Files returns the files and directories at a given path inside an application, each entry carrying its type, size, and last-modified time. Use it to browse an application’s storage from a dashboard or script before reading, writing, or deleting a specific file. The listing reflects the application’s storage on its cluster node at request time; it is not cached. Pair it with Read File to fetch a file’s contents, or Create/Modify File to write one. Omitting path lists the application root. On workspace-shared applications the caller needs the maintain or admin role, and members without the restricted-files permission never see .env or .env.production in the results, those entries are filtered out of the response rather than erroring.

Parameters

string
required
The ID of the application. You can find this in the URL of your application’s dashboard.
string
required
The path of the directory whose files you want to list, up to 256 characters. Default is the root directory.

Response

string
Indicates whether the call was successful: success if it was, error if not.
array
The list of files and directories in the specified path.

Common errors