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

# Get commit

`GET /repositories/{id}/commits/{commit_sha}`

Get a commit by SHA

## Path parameters

- `id` integer, required
- `commit_sha` string, required

## Response `200`

OK

- DtoCommitJSONAPIResponse
  - `data` DtoCommitData
    - `attributes` DtoCommitAttributes
      - `author` string
      - `commit_sha` string
      - `date` string
      - `message` string
      - `parent_commit_sha` string
    - `id` string
    - `type` string

## 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)
