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

# List enabled GitHub repositories for a program

> Requires reports:triage and a SuperAdmin or StandardAdmin role for the program. Returns repositories configured on enabled GitHub App installations for the program's organization.



## OpenAPI

````yaml /openapi/external-admin-2026-11-25.json get /programs/{id}/github/repositories
openapi: 3.0.3
info:
  title: Hackrate External Admin API
  version: API-2026-11-25
  description: >-
    Program discovery and report triage for users with assigned Hackrate roles.
    Tokens are created in Profile Settings > External API. This release adds
    GitHub repository discovery, report advisory references, and draft advisory
    creation. Existing reports:triage tokens can discover repositories and
    create drafts when their owner has the required administrator role. Both
    releases use /api/v1/admin. [Compare API
    versions](/companies/integrations/external-api#api-versions).
servers:
  - url: https://www.hckrt.com/api/v1/admin
security:
  - personalToken: []
paths:
  /programs/{id}/github/repositories:
    get:
      summary: List enabled GitHub repositories for a program
      description: >-
        Requires reports:triage and a SuperAdmin or StandardAdmin role for the
        program. Returns repositories configured on enabled GitHub App
        installations for the program's organization.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: Configured repositories
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/GitHubRepository'
              example:
                - repoId: 123456789
                  fullName: example/project
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    GitHubRepository:
      type: object
      required:
        - repoId
        - fullName
      properties:
        repoId:
          type: integer
          format: int64
        fullName:
          type: string
          description: GitHub repository owner and name.
    ProblemDetails:
      type: object
      properties:
        type:
          type: string
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
  responses:
    Unauthorized:
      description: Missing, invalid, expired, or revoked token
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetails'
    Forbidden:
      description: The role or token scope does not allow the operation
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetails'
    NotFound:
      description: Resource not found or outside the token owner's access
    RateLimited:
      description: Per-token limit of 120 requests per minute exceeded
  securitySchemes:
    personalToken:
      type: http
      scheme: bearer
      bearerFormat: hckrt_pat token

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.