List the repositories a GitHub App installation grants.
POST/api/v1/github-installations/{github_installation_id}/discover-repositoriesconnectors:read
Asks GitHub which repositories the installation can reach, one page at a time. Nothing is saved.
| Scope | connectors:read (sensitive) |
| Asynchronous | No |
| MCP tool | discover_github_installation_repositories |
| Portal permissions | view_github_repositories |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
github_installation_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional |
Request body
| Content type | Type |
|---|---|
application/json | GitHubDiscoverRepositoriesRequestInput |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json GitHubDiscoveredRepositories |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
GitHubDiscoverRepositoriesRequestInput
| Field | Type | Required | Description |
|---|---|---|---|
page | integer or null | Optional | The page of GitHub's listing; 1 by default. |
GitHubDiscoveredRepositories
| Field | Type | Required | Description |
|---|---|---|---|
account_login | string | Required | |
github_installation_id | string | Required | |
next_page | integer | Required | The next page; 0 at the last page. ≥ -2147483648; ≤ 2147483647 |
page | integer | Required | ≥ -2147483648; ≤ 2147483647 |
repositories | array of GitHubDiscoveredRepository | Required |
GitHubDiscoveredRepository
| Field | Type | Required | Description |
|---|---|---|---|
default_branch | string | Required | |
full_name | string | Required | |
github_repository_number | string | Required | GitHub's repository ID. |
name | string | Required | |
owner | string | Required | |
private | boolean | Required |