---
title: "Get Repository Commits"
method: GET
path: "/api/v2/repos/{username}/{repo_name}/commits"
---

# Get Repository Commits

`GET /api/v2/repos/{username}/{repo_name}/commits`

Get commit history for repo repository

## Path parameters

- `username` string, required
- `repo_name` string, required

## Query parameters

- `sha` string, nullable — Branch name, tag, or commit SHA to start from
- `path` string, nullable — Only show commits containing this file path
- `page` integer — Page number
- `limit` integer — Number of commits per page

## Headers

- `authorization` string, nullable

## Cookies

- `modaic_session` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/modaic-ai/apis/modaic-api.md) · [All operations](https://skmtc.net/modaic-ai/apis/modaic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/modaic-ai/modaic-api/revisions/43a90513ac59/schema)
