Skip to main content
GET
List workspace files

Authorizations

Authorization
string
header
required

A gbr_pat_ access token. Scopes are recorded on the token when it is minted.

Query Parameters

refresh
enum<string>

1 captures a snapshot first, so the answer is the workspace as it is now. Needs sessions:write — taking one is an action, not a read — and the call is refused rather than quietly answering stale if the token only holds sessions:read.

Available options:
1

Response

List the files in a session's workspace.

The files in a session's workspace, as of the last snapshot. Not the live sandbox — captured_at says which moment this is, because reading a stale file and believing it current is the failure this field exists to prevent.

object
string
required

Always list. Names the shape, so a value can be identified without knowing which call returned it.

Allowed value: "list"
data
object[]
required
state
enum<string>
required

missing means there is no snapshot yet — call POST /files/refresh.

Available options:
ready,
missing
captured_at
integer | null

Unix milliseconds of the snapshot. Null means none has been taken, which is not the same as an empty workspace.

truncated
boolean

The archive is read with a byte ceiling; past it the listing stops.