---
title: "GET /v1/workspaces/{workspaceNameOrID}/skill-inventories/source-repos"
method: GET
path: "/v1/workspaces/{workspaceNameOrID}/skill-inventories/source-repos"
tags: ["SkillInventory"]
---

# GET /v1/workspaces/{workspaceNameOrID}/skill-inventories/source-repos

`GET /v1/workspaces/{workspaceNameOrID}/skill-inventories/source-repos`

Lists repositories the workspace’s connected SCM source can see, for the create-flow repo picker. Given a `provider` (github, gitlab, bitbucket, or the dev-only mockhub) and an optional `q`, runs a provider-side name search when `q` is present (so a huge org need not be enumerated to find a repo) or lists the first page of the account otherwise, returning the bare repo `name` (the scan filter key), the `owner/repo` `fullName`, and whether the repo is archived. Results are capped; `hasMore` signals the caller to narrow with `q`. 404s when the provider is not connected for the workspace or the onboarding feature flag is off.

## Path parameters

- `workspaceNameOrID` string, required

## Query parameters

- `provider` union, required
  - 'github'
  - 'gitlab'
  - 'bitbucket'
  - 'mockhub'
- `q` string

## Headers

- `Authorization` string

## Response `200`

Default Response

- object
  - `links` object, required
    - `self` string, uri, required
    - `next` string, uri, nullable, required
    - `prev` string, uri, nullable, required
  - `meta` object, required
    - `count` number, required
  - `data` object[], required
    - `id` string, required
    - `type` 'skill-inventory-source-repo', required
    - `attributes` object, required
      - `name` string, required
      - `fullName` string, required
      - `archived` boolean, required

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/tessl/apis/tessl-api.md) · [All operations](https://skmtc.net/tessl/apis/tessl-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tessl/tessl-api/versions/fbb186825642/schema)
