sessions
List one directory level of a session workspace's full file tree, git-status decorated
get/api/v1/sessions/{sessionId}/workspace/tree
Request
- Base URLhttp://127.0.0.1:3001
- URLhttp://127.0.0.1:3001/api/v1/sessions/{sessionId}/workspace/tree
- Authnone declared
Path parameters
sessionIdstring required
Session identifier, e.g. project-1.
Query parameters
filterstring
Case-insensitive path search across the selected snapshot.
commitShastring
Selected commit SHA.
snapshotboolean
Read the immutable review snapshot instead of the live worktree.
branchstring
Local or remote-tracking branch to read without checkout.
prNumberinteger
Associated pull request number.
sourceUrlstring
Associated pull request URL.
expectedTipShastring
Pinned source tip for snapshot reads. Must remain reachable from the selected source.
expectedBaseShastring
Pinned comparison base for snapshot reads.
commitShasstring
Comma-separated selected commit SHAs.
pathstring
Directory path relative to the session workspace root. Empty or omitted lists the root.
Response
OK