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

# Get commit enrichment

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

## Request

- Base URL: `/api/v1` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/v1/repositories/{id}/commits/{commit_sha}/enrichments/{enrichment_id}`
- Auth: API key in header `X-API-KEY`

Get an enrichment by ID within commit context

## Path parameters

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

## Response `200`

OK

- DtoEnrichmentJSONAPIResponse
  - `data` DtoEnrichmentData
    - `attributes` DtoEnrichmentAttributes
      - `content` string
      - `created_at` string
      - `end_line` integer
      - `page` integer
      - `start_line` integer
      - `subtype` string
      - `type` string
      - `updated_at` string
    - `id` string
    - `type` string

## Other responses

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

## Changes

- **2026-04-06** `de2135f74990`: 1 info
  - added the optional property `data/attributes/page` to the response with the `200` status
- **2026-02-27** `f32956e4ed89`: 2 info
  - added the optional property `data/attributes/end_line` to the response with the `200` status
  - added the optional property `data/attributes/start_line` to the response with the `200` status
- **2026-02-19** `41466db231c5`: 3 warning
  - removed the optional property `data/attributes/end_line` from the response with the `200` status
  - removed the optional property `data/attributes/page` from the response with the `200` status
  - removed the optional property `data/attributes/start_line` from the response with the `200` status

[Operation history](https://skmtc.dev/helixml/apis/kodit-api/changes/repositories/:id/commits/:commit_sha/enrichments/:enrichment_id/get.md)

---

[API](https://skmtc.dev/helixml/apis/kodit-api.md) - [All operations](https://skmtc.dev/helixml/apis/kodit-api/llms.txt) - [OpenAPI document](https://skmtc.dev/helixml/apis/kodit-api/revisions/3f72fa58f3fb?raw)
