---
title: "List repositories"
method: GET
path: "/api/v2/engineering-insights/repositories"
tags: ["Insights repositories (beta)"]
---

# List repositories

`GET /api/v2/engineering-insights/repositories`

Get a list of repositories

### Expanding the repository collection response

LaunchDarkly supports expanding the repository collection response to include additional fields.

To expand the response, append the `expand` query parameter and include the following:

* `projects` includes details on all of the LaunchDarkly projects associated with each repository

For example, use `?expand=projects` to include the `projects` field in the response. By default, this field is **not** included in the response.

## Query parameters

- `expand` string, string — Expand properties in response. Options: `projects`

## Response `200`

Repository collection response

- InsightsRepositoryCollection
  - `totalCount` integer, required — Total number of repositories
  - `items` InsightsRepository[], required — List of repositories
    - `_id` string, uuid, required — The repository ID
    - `version` integer, required — The repository version
    - `key` string, required — The repository key
    - `type` string, required — The repository type
    - `url` string, required — The repository URL
    - `mainBranch` string, required — The repository main branch
    - `projects` ProjectSummaryCollection
      - `totalCount` integer, required
      - `items` ProjectSummary[], required
        - `_id` string, required — The ID of this project
        - `_links` object, required — The location and content type of related resources
        - `key` string, required — The project key
        - `name` string, required — The project name
      - `_links` object
  - `_links` object — The location and content type of related resources

## Other responses

- `400` — Invalid request
- `401` — Invalid access token
- `403` — Forbidden
- `404` — Invalid resource identifier
- `429` — Rate limited

---

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