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

# Get repository

`GET /repositories/{id}`

Get a repository by ID

## Path parameters

- `id` integer, required

## Response `200`

OK

- DtoRepositoryDetailsResponse
  - `branches` DtoRepositoryBranchData[]
    - `commit_count` integer
    - `is_default` boolean
    - `name` string
  - `data` DtoRepositoryData
    - `attributes` DtoRepositoryAttributes
      - `cloned_path` string
      - `created_at` string
      - `last_scanned_at` string
      - `num_branches` integer
      - `num_commits` integer
      - `num_tags` integer
      - `pipeline_id` integer
      - `remote_uri` string
      - `tracking_branch` string
      - `updated_at` string
      - `upstream_url` string — The canonical upstream URL (e.g. github.com/org/repo); falls back to remote_uri when not set
    - `id` string
    - `links` DtoRepositoryLinks
      - `pipeline` string
    - `type` string
  - `recent_commits` DtoRepositoryCommitData[]
    - `author` string
    - `message` string
    - `sha` string
    - `timestamp` 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)
