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

# List Github Repositories

> List every repo the user can access via the GitHub App.

Iterates all of the user's App installations (personal account + every
org they belong to) so the picker shows the full set, not just whichever
installation happened to be first when they connected.



## OpenAPI

````yaml /openapi.json get /api/github/repositories
openapi: 3.1.0
info:
  description: >-
    Public CodeCobra API. Authenticate by sending a personal API key in the
    `Authorization: Bearer <key>` header. Generate keys from Settings → API keys
    in the CodeCobra dashboard.
  title: CodeCobra Public API
  version: 1.0.0
servers: []
security: []
paths:
  /api/github/repositories:
    get:
      tags:
        - public
      summary: List Github Repositories
      description: |-
        List every repo the user can access via the GitHub App.

        Iterates all of the user's App installations (personal account + every
        org they belong to) so the picker shows the full set, not just whichever
        installation happened to be first when they connected.
      operationId: list_github_repositories_api_github_repositories_get
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/GitHubRepository'
                title: Response List Github Repositories Api Github Repositories Get
                type: array
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    GitHubRepository:
      description: Represents a GitHub repository.
      properties:
        can_push:
          default: true
          title: Can Push
          type: boolean
        default_branch:
          title: Default Branch
          type: string
        full_name:
          title: Full Name
          type: string
        id:
          title: Id
          type: integer
        name:
          title: Name
          type: string
        private:
          title: Private
          type: boolean
      required:
        - id
        - full_name
        - name
        - private
        - default_branch
      title: GitHubRepository
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http

````