---
title: "List GitHub discovery tree entries"
method: GET
path: "/v1/connector-instances/{connectorInstanceId}/discovery/tree"
tags: ["GitHub"]
---

# List GitHub discovery tree entries

`GET /v1/connector-instances/{connectorInstanceId}/discovery/tree`

Pages through the normalized GitHub repository tree used during discovery.

## Path parameters

- `connectorInstanceId` string, typeid, required

## Query parameters

- `cursor` string
- `limit` integer
- `prefix` string

## Response `200`

GitHub discovery tree returned successfully.

- PluginArchGithubDiscoveryTreeResponse
  - `items` PluginArchGithubDiscoveryTreeEntry[], required
    - `id` string, required
    - `kind` 'blob' | 'tree', required
    - `path` string, required
    - `sha` string, nullable, required
    - `size` integer, nullable, required
  - `nextCursor` string, nullable, required

## Other responses

- `400` — The discovery tree request was invalid.
- `401` — The caller must be signed in to inspect GitHub discovery tree entries.
- `404` — The connector instance could not be found.

## Changes

- **2026-08-20** `93df40e2efd5` — 1 info
  - removed the pattern `^cin_.*` from the `path` request parameter `connectorInstanceId`

[Change history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/connector-instances/:connectorInstanceId/discovery/tree/get.md)

---

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