Skip to main content
POST
Read app files

Authorizations

Authorization
string
header
required

Personal access token, sent as Authorization: Bearer <token>. Each operation lists the permission it needs: read_only or full_access. A full-access token can call every operation. A read-only token can call only the operations that list read_only; anything else returns 403 read_only_credential_route_not_allowed.

Path Parameters

app_id
string
required

ID of the app whose sandbox to operate on.

Body

application/json
paths
string[]
required

One or more file paths relative to the app root.

Required array length: 1 - 50 elements
branch_id
string | null

Optional Base44 branch ID. Omit to operate on main.

offset
integer | null

1-based start line (optional).

Required range: x >= 1
limit
integer | null

Max lines to return from offset (optional).

Required range: x >= 1

Response

One entry per requested path, each either a read or an error.

The files you asked for, in the order you asked for them.

files
ReadFileEntry · object[]
required

One entry per requested path, in request order. Each is either a successful read or an error for that path, so check for error before reading content.

Example: