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

# Get repository

`GET /repositories/{id}`

## Request

- Base URL: `https://app.codethreat.com/api/v1`
- URL: `https://app.codethreat.com/api/v1/repositories/{id}`
- Auth: API key in header `X-API-Key`

Get details of a specific repository

## Path parameters

- `id` string, required

## Response `200`

Successful response

- RepositoryResponse
  - `success` boolean
  - `data` object
    - `id` string
    - `name` string
    - `url` string
    - `provider` 'github' | 'gitlab' | 'bitbucket' | 'azure_devops'
    - `status` 'active' | 'inactive' | 'archived'
    - `description` string
    - `lastScanAt` string, date-time
    - `createdAt` string, date-time
    - `updatedAt` string, date-time
  - `pagination` Pagination
    - `page` integer
    - `limit` integer
    - `total` integer
    - `totalPages` integer
    - `hasNext` boolean
    - `hasPrev` boolean
  - `meta` ResponseMeta
    - `timestamp` string, date-time
    - `version` string
    - `requestId` string
    - `organizationId` string

## Other responses

- `404`: Resource not found

---

[API](https://skmtc.dev/codethreat/apis/codethreat-api.md) - [All operations](https://skmtc.dev/codethreat/apis/codethreat-api/llms.txt) - [OpenAPI document](https://skmtc.dev/codethreat/apis/codethreat-api/revisions/18f11fecbb30?raw)
