List Files Metadata
Return a recursive file tree together with per-file commit metadata in one request. Each file also includes a derived type field for symmetry with /files.
Deprecated: Use /api/repos/{repo_name}/files/metadata 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 recursively. Empty means the repository root.
Accepted for API symmetry. Metadata listings are recursive regardless of this flag.
Pagination cursor returned by a previous list_files_with_metadata response.
Maximum number of files to return. Defaults to 200.
0 <= x <= 1000Whether ref should be resolved from the ephemeral namespace.
Response
The repository tree plus deduplicated commit metadata for the latest change touching each file.
Files in the repository at the resolved revision, each annotated with mode, type, and the latest commit that changed it.
Commit metadata keyed by last_commit_sha so repeated commits are only sent once.
Files in the resolved revision, each annotated with the latest commit that changed it.
Whether another page of files is available.
true
The resolved ref or commit used to generate the listing.
"main"
Cursor to resume pagination from. Empty when there are no more results.
"docs/guide.md"