API Reference/Git
Get the contents of a file or directory
Get the contents of a file or directory in a repository
Path Parameters
repoRequiredstringThe repository ID.
Format:
"uuid"pathRequiredstring | nullThe path to the file or directory. Empty for root.
Query Parameters
refstringThe git reference (branch name, commit SHA, etc.). Defaults to HEAD.
Response Body
200
Success
responseRequiredFile | Directory400
Bad Request
messageRequiredstring401
Unauthorized
messageRequiredstring403
Forbidden
messageRequiredstring404
Not Found
messageRequiredstring500
Internal Server Error
messageRequiredstringSuccess