Skip to main content
GET
List Files
string
required
The API key for your account. You can find this in your account settings.
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 Maintainer or Administrator 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. Default is the root directory.

Response

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

Common errors