List Files
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.
Deprecated: Use /api/repos/{repo_name}/files instead.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
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.
Pagination cursor returned by a previous list_files response.
Maximum number of paths to return. Defaults to 1000.
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 of entries 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.
["README.md"]
The resolved reference (branch name or commit SHA) that was used.
"main"
Cursor to resume pagination from. Empty when there are no more results.
"docs/guide.md"