Application - File Manager
Read File
Read a file from your application.
GET
Read File
string
required
The API key for your account. You can find this in your account settings.
{ type: "Buffer", data: number[] } object rather than a stream. It is meant for inspecting or downloading individual files (configs, logs, small assets) through the API, not for bulk transfers, use Create Snapshot to pull a full copy of the application instead.
To see what is available before reading, call List Files first. To write a file back, use Create/Modify File, which accepts the same Buffer format for binary content.
On workspace-shared applications the caller needs the Maintainer or Administrator role, and members without the restricted-files permission cannot read .env or .env.production, the request is rejected with PERMISSION_DENIED before the file is touched.
Parameters
string
required
The ID of the application. You can find this in the URL of your application’s dashboard.
string
required
The path to the file you want to read. This is relative to the root of your application.
Response
string
Indicates whether the call was successful..
success if successful, error if not.object
The contents of the file.
Common errors
Read File

