> ## Documentation Index
> Fetch the complete documentation index at: https://kaneo.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# List GitHub repositories

> List the repositories reachable through the installed GitHub App, for picking one to link.



## OpenAPI

````yaml /openapi.json get /github-integration/repositories/{projectId}
openapi: 3.1.0
info:
  title: Kaneo API
  version: 1.0.0
  description: Kaneo Project Management API - Manage projects, tasks, labels, and more
servers:
  - url: https://cloud.kaneo.app/api
    description: Kaneo API Server
security:
  - bearerAuth: []
paths:
  /github-integration/repositories/{projectId}:
    get:
      tags:
        - GitHub
      summary: List GitHub repositories
      description: >-
        List the repositories reachable through the installed GitHub App, for
        picking one to link.
      operationId: listGitHubRepositories
      parameters:
        - schema:
            type: string
          required: true
          name: projectId
          in: path
      responses:
        '200':
          description: Repositories reachable through the installed App
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GitHubRepositoryList'
        '400':
          description: Unknown project, or its workspace could not be determined
          content:
            text/plain:
              schema:
                type: string
        '401':
          description: Missing or invalid credentials
        '403':
          description: No workspace access, or missing workspace:manage_settings
          content:
            text/plain:
              schema:
                type: string
components:
  schemas:
    GitHubRepositoryList:
      type: object
      properties:
        repositories:
          type: array
          items:
            $ref: '#/components/schemas/GitHubRepository'
          description: Deduplicated across installations, most recently updated first.
        installations:
          type: array
          items:
            $ref: '#/components/schemas/GitHubInstallation'
        total:
          type: number
      required:
        - repositories
        - installations
        - total
    GitHubRepository:
      type: object
      properties:
        id:
          type: number
        name:
          type: string
        full_name:
          type: string
        private:
          type: boolean
        owner:
          $ref: '#/components/schemas/GitHubRepositoryOwner'
        description:
          type:
            - string
            - 'null'
        html_url:
          type: string
        permissions:
          $ref: '#/components/schemas/GitHubRepositoryPermissions'
        updated_at:
          type: string
          format: date-time
        installation_id:
          type: number
          description: Which App installation this repository came through.
      required:
        - id
        - name
        - full_name
        - private
        - owner
        - description
        - html_url
        - updated_at
        - installation_id
    GitHubInstallation:
      type: object
      properties:
        id:
          type: number
        account:
          $ref: '#/components/schemas/GitHubInstallationAccount'
        repositories:
          type: array
          items:
            type: string
          description: >-
            Full names of the repositories under this installation. Empty when
            listing them failed.
      required:
        - id
        - account
        - repositories
    GitHubRepositoryOwner:
      type: object
      properties:
        login:
          type: string
        avatar_url:
          type: string
        type:
          type: string
      required:
        - login
        - avatar_url
        - type
    GitHubRepositoryPermissions:
      type: object
      properties:
        admin:
          type: boolean
        push:
          type: boolean
        pull:
          type: boolean
      required:
        - admin
        - push
        - pull
    GitHubInstallationAccount:
      type:
        - object
        - 'null'
      properties:
        login:
          type: string
        type:
          type: string
      required:
        - login
        - type
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key or session token (Bearer)

````