Skip to Content
kosemdocs
ReferenceAPIConnections

List GitHub repositories

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

GET
/v1/organizations/{organization}/connections/{connection}/github-repositories

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

Authorization

bearer
headerAuthorizationBearer <token>

An access token, or an API key.

Path Parameters

organization*string

The organization's ID.

Match^org_[0-7][0-9a-hjkmnp-tv-z]{25}$
connection*string

The connection's ID.

Match^con_[0-7][0-9a-hjkmnp-tv-z]{25}$

Response Body

OK

application/json
  1. response
permissions*

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*array<>

Repositories, as GitHub lists them.

Example Request
curl -X GET 'https://api.kosem.ai/v1/organizations/string/connections/string/github-repositories'
Example Response
{
  "permissions": {
    "property1": "string",
    "property2": "string"
  },
  "repositories": [
    {
      "fullName": "string",
      "name": "string",
      "private": true
    }
  ]
}