EndpointsList files

Sandboxes

List files

Entries of a directory sorted by path, optionally recursive, paged with cursor. Symbolic links are listed, not followed. Requires files. Commands and file operations need an ACTIVE sandbox; on any other state they answer 409.

POST/sandboxes/{id}:listFiles
Authorizationstringheaderrequired

Bearer token for the authenticated caller.

Optional workspace/scope context for the request. Carries a single workspace wire id (ws_…) today. Only needed for broad tokens - a workspace-owned token implies its workspace.

Required string length: 1 - 53

Example: "ws_j572abc123def4"

idstringrequired

Sandbox id (sbx_...).

Pattern: ^sbx_[A-Za-z0-9]{1,64}$

Example: "sbx_j572abc123def456"

Body

application/json
pathstringrequired

Absolute path inside the sandbox.

Required string length: 1 - 4096

Pattern: ^\/[^\0]*$

Example: "/workspace/README.md"

recursivebooleandefault:false
limitintegerdefault:200

Required range: 1 <= x <= 1000

cursorstring

Maximum string length: 4096

Response

application/json

SandboxFileList

dataobject[]required
child attributes
data.pathstringrequired
data.typeenum<string>required

Available options: file, directory, symlink, other

data.sizeintegerrequired

Required range: x >= 0

data.modestringrequired

Permission bits in octal.

Example: "0644"

data.modified_atintegerrequired

Last modification (Unix seconds).

Required range: x >= 0

has_morebooleanrequired

True if more items exist after this page.

next_cursorstring | nullrequired

Opaque cursor for the next page, or null if no more pages.