---
title: "List components"
method: GET
path: "/gh/{ownerKeyOrId}/projects/{projectKeyOrId}/components"
tags: ["Components"]
---

# List components

`GET /gh/{ownerKeyOrId}/projects/{projectKeyOrId}/components`

Retrieve all Components defined for a Project. Supports JSON, newline-delimited JSON (`application/x-ndjson`), and CSV (`text/csv`) response formats via the `Accept` header.

## Path parameters

- `ownerKeyOrId` string, required — Repository owner name (login) or workspace ID
- `projectKeyOrId` string, required — Repository name or project ID

## Response `200`

List components for the project

- ComponentList
  - `data` Component[], required
    - `id` string, required
    - `name` string, required
    - `description` string, nullable, required
    - `pathGlobs` string[], required
    - `fileCount` integer, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `429` — Rate Limit Exceeded
- `500` — Internal Server Error

## Changes

- **2026-07-31** `b61e0586adfe` — 1 breaking
  - the `data/items/pathGlobs` response's property type/format changed from `string`/`` to `array`/`` for status `200`

[Change history](https://skmtc.dev/qlty/apis/qlty-api/changes/gh/:ownerKeyOrId/projects/:projectKeyOrId/components/get.md)

---

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