v1

latestOpenAPI 3.1.0raw.githubusercontent.com2026-06-0318386446.4 KB

Get Repository Git Tree

Get git tree object for repo repository

get/api/v2/repos/{username}/{repo_name}/git/trees/{sha}

Path parameters

usernamestring required
repo_namestring required
shastring required

Query parameters

recursiveboolean

Whether to recursively fetch the entire tree

Whether to recursively fetch the entire tree

Headers

authorizationstring nullable

Cookies

modaic_sessionstring nullable

Response

Successful Response

{"stackTrail":"paths:/api/v2/repos/{username}/{repo_name}/git/trees/{sha}:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}