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

# Get commit file

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

Get a file by blob SHA

## Path parameters

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

## Response `200`

OK

- DtoFileJSONAPIResponse
  - `data` DtoFileData
    - `attributes` DtoFileAttributes
      - `blob_sha` string
      - `extension` string
      - `mime_type` string
      - `path` string
      - `size` integer
    - `id` string
    - `type` string

## Other responses

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

---

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