---
title: "List Git Repos"
method: GET
path: "/knowledge-graph/git/{provider}/repos"
tags: ["knowledge-graph"]
---

# List Git Repos

`GET /knowledge-graph/git/{provider}/repos`

## Request

- Base URL: `https://api.evidenso.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.evidenso.com/knowledge-graph/git/{provider}/repos`
- Auth: HTTP bearer

List the connected user's accessible repositories for the Product Context Graph repo picker.
Returns {repos: [{full_name, clone_url, private, default_branch}], connected, needs_reconnect?}.
- connected=False when the provider isn't linked (UI shows a Connect prompt).
- needs_reconnect=True on an auth/permission failure the user fixes by reconnecting (a stale GitLab
  token without a listing scope, or a revoked token).

## Path parameters

- `provider` string, required

## Query parameters

- `product_name` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/evidenso/apis/persona-rag-api.md) - [All operations](https://skmtc.dev/evidenso/apis/persona-rag-api/llms.txt) - [OpenAPI document](https://skmtc.dev/evidenso/apis/persona-rag-api/revisions/86408c178d4f?raw)
