v1

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

Get Repository Raw File

Get raw file contents from repo repository

get/api/v2/repos/{username}/{repo_name}/raw/{file_path}

Path parameters

usernamestring required
repo_namestring required
file_pathstring required

Query parameters

refstring

Git reference (branch, tag, or commit SHA)

Git reference (branch, tag, or commit SHA)

Headers

authorizationstring nullable

Cookies

modaic_sessionstring nullable

Response

Successful Response

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