# List GitHub repositories

`GET /v1/organizations/{organization}/connections/{connection}/github-repositories`, operation `connections.ListGitHubRepositories`

Lists the repositories that a GitHub connection reaches, up to 1,000, which its dynamic secrets may name.

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `organization` | path | Yes | `string` | The organization's ID. |
| `connection` | path | Yes | `string` | The connection's ID. |

## Responses

### 200

OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `permissions` | `map<string, string>` | Yes | What the installation granted kosem's GitHub App, by permission, such as contents, each read, write or admin: the most that a dynamic secret of the connection may ask for. |
| `repositories` | `GitHubRepository[]` | Yes | Repositories, as GitHub lists them. |

### default

Error

Base URL: `https://api.kosem.ai`. See [API conventions](https://docs.kosem.ai/reference/api-conventions.md) for authentication, pagination and errors, and [https://docs.kosem.ai/openapi.yaml](https://docs.kosem.ai/openapi.yaml) for the full OpenAPI document.