---
title: "List commits"
method: GET
path: "/repositories/{id}/commits"
tags: ["repositories"]
---

# List commits

`GET /repositories/{id}/commits`

List commits for a repository

## Path parameters

- `id` integer, required

## Query parameters

- `page` integer
- `page_size` integer

## Response `200`

OK

- DtoCommitJSONAPIListResponse
  - `data` DtoCommitData[]
    - `attributes` DtoCommitAttributes
      - `author` string
      - `commit_sha` string
      - `date` string
      - `message` string
      - `parent_commit_sha` string
    - `id` string
    - `type` string
  - `links` JsonapiLinks
    - `first` string
    - `last` string
    - `next` string
    - `prev` string
    - `self` string
  - `meta` JsonapiMeta

## Other responses

- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/helixml/apis/kodit-api.md) · [All operations](https://skmtc.net/helixml/apis/kodit-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/helixml/kodit-api/versions/3f72fa58f3fb/schema)
