repos.files.list
List files or direct child entries at a branch, tag, or commit without cloning the repository. Each entry includes its path, Git mode, and derived type (blob, tree, symlink, or submodule). Trees no longer carry a trailing /; branch on type instead.
Scope: git:read on the repository.
Authorizations
JWT bearer token signed with your organization's registered signing key. There is no OAuth authorization server; you mint tokens yourself and the token's scopes claim carries the granted permission scopes. Public scopes: git:read (read repository contents), git:write (write branches, commits, tags, and notes), repo:write (create and manage repositories), org:read (list an organization's repositories). Each operation's security requirement names the scopes it requires. See https://code.storage/docs/getting-started/authentication for how to mint tokens.
Path Parameters
The repository name, for example acme/web.
Query Parameters
Optional branch, tag, or commit SHA to list from. When omitted, the repository default branch is used.
Optional repository-relative subtree to list. Empty means the repository root.
When true, include descendants recursively. When false, only direct children are returned. Defaults to true.
Pagination cursor returned by a previous list_files response.
Maximum number of paths to return. A call with no limit and no cursor returns every path in one response, with has_more false. A limit of 0 is the same as no limit. A call with a cursor and no limit returns up to 1000 paths.
0 <= x <= 5000Whether ref should be resolved from the ephemeral namespace.
Response
Tree entries for the resolved revision.
Paginated tree entries in the repository at the resolved revision.
Tree entries for the resolved revision.
Whether another page is available.
true
Flat blob-only path list. Mirrors the path of every entry whose type is "blob". Convenience shape for callers that just want file paths; use entries when you need type/mode.
Repository-relative path used to scope the operation.
The resolved reference (branch name or commit SHA) that was used.
"main"
Opaque cursor for the next page. Pass it as cursor to read the next page. Absent when there are no more results.
"MTcwNzU3MzQ1MTAwMDAwMDAwMHxyZXBvXzlhNGMyMWY"