API Reference/Git
List commits for a repository
List commits from the Git database for a specific repository and branch.
GET
/git/v1/repo/{repo}/git/commits
Path Parameters
repo
RequiredstringThe repository id
Format:
"uuid"
Query Parameters
branch
string | nullBranch name (defaults to HEAD)
limit
integer | nullMaximum number of commits to return (default: 50, max: 500)
Minimum:
0
offset
integer | nullNumber of commits to skip (default: 0)
Minimum:
0
Response Body
200
Commits retrieved successfully
commits
Requiredarray<object>List of commits
count
RequiredintegerNumber of commits returned in this page
Minimum:
0
offset
RequiredintegerNumber of commits skipped (offset)
Minimum:
0
limit
RequiredintegerMaximum number of commits requested (limit)
Minimum:
0
total
RequiredintegerTotal number of commits available in the branch
Minimum:
0
400
Invalid request
message
Requiredstring403
Forbidden
message
Requiredstring404
Repository or branch not found
message
Requiredstring500
Internal server error
message
RequiredstringCommits retrieved successfully