Skip to main content

Options

string
Branch name or commit SHA. Defaults to the default branch.
boolean
When true, resolves the ref under the ephemeral namespace.
string
Repository-relative file or subtree to list. An exact file path returns one metadata entry.
boolean
Accepted for symmetry with listFiles; metadata listings are always recursive.
string
Pagination cursor from a previous response.
number
Maximum files to return.
number
Time-to-live in seconds for the JWT used in the request.

Response

array
One entry per file in the tree at the resolved ref.
object
A map of commit SHA → commit metadata. Each SHA referenced by files[].lastCommitSha has exactly one entry here. The map is deduplicated — if many files share the same last-touching commit, that commit appears once.
string
The ref the server resolved and used, regardless of what was passed in options.
string
Cursor for the next page. Python: next_cursor; Go: NextCursor.
boolean
Whether additional pages are available. Python: has_more; Go: HasMore.