Skip to main content
GET
Read a workspace file

Authorizations

Authorization
string
header
required

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

Query Parameters

path
string

Relative to the workspace directory.

Response

Read one file from a session's workspace.

object
string
required

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

Allowed value: "workspace_file.content"
path
string
required
content
string
required

Text as text; anything else base64. encoding says which.

encoding
enum<string>
required
Available options:
utf8,
base64
captured_at
integer

Unix milliseconds of the snapshot this came from.

truncated
boolean

Text past the inline ceiling is cut. Only ever true for text.