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

# List Repositories

> Acts on the signed-in user’s own GitHub connection. Available only when GitHub integration is enabled; check GET /integrations/github/availability. Request bodies are limited to 128 KiB. Objects passed through from GitHub, such as branches, commits and pull requests, can include more fields than listed.

Operation ID: github_listRepositories.



## OpenAPI

````yaml /openapi/itoflow-public.openapi.json post /integrations/github/listRepositories
openapi: 3.1.0
info:
  description: >-
    All Itoflow APIs are experimental and may change without notice. Read-only
    operations marked interactive can be tried from the documentation; the
    others are reference-only.
  title: Itoflow Developer API
  version: 1.0.0
servers:
  - description: Itoflow API
    url: https://api.itoflow.ai
security: []
tags:
  - name: Account
  - name: Billing
  - name: Brokers
  - name: Chat
  - name: Connected MCP servers
  - name: GitHub
  - name: Market data
  - name: Monitors
  - name: Notifications
  - name: Portfolios
  - name: Risk runs
  - name: Sharing and data
  - name: Strategies
paths:
  /integrations/github/listRepositories:
    post:
      tags:
        - GitHub
      summary: >-
        List repositories accessible through the connected GitHub App. Start at
        page 1, then follow each response’s nextPage using the same perPage
        value. Use a returned repositoryId for subsequent operations.
      description: >-
        Acts on the signed-in user’s own GitHub connection. Available only when
        GitHub integration is enabled; check GET
        /integrations/github/availability. Request bodies are limited to 128
        KiB. Objects passed through from GitHub, such as branches, commits and
        pull requests, can include more fields than listed.


        Operation ID: github_listRepositories.
      operationId: github_listRepositories
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Gateway_Github_listRepositories_Input'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Gateway_Github_listRepositories_Result'
          description: Success
          headers:
            Cache-Control:
              schema:
                enum:
                  - no-store
                type: string
        '400':
          $ref: '#/components/responses/Gateway_GithubError'
        '401':
          $ref: '#/components/responses/Gateway_GithubError'
        '403':
          $ref: '#/components/responses/Gateway_GithubError'
        '404':
          $ref: '#/components/responses/Gateway_GithubError'
        '409':
          $ref: '#/components/responses/Gateway_GithubError'
        '413':
          $ref: '#/components/responses/Gateway_GithubError'
        '422':
          $ref: '#/components/responses/Gateway_GithubError'
        '429':
          $ref: '#/components/responses/Gateway_GithubError'
        '502':
          $ref: '#/components/responses/Gateway_GithubError'
        '503':
          $ref: '#/components/responses/Gateway_GithubError'
      security:
        - bearerAuth: []
components:
  schemas:
    Gateway_Github_listRepositories_Input:
      additionalProperties: false
      properties:
        page:
          default: 1
          description: Page number; follow the previous response’s nextPage value.
          maximum: 10000
          minimum: 1
          type: integer
        perPage:
          default: 30
          description: Page size; keep it unchanged while following nextPage.
          maximum: 100
          minimum: 1
          type: integer
      type: object
    Gateway_Github_listRepositories_Result:
      additionalProperties: false
      properties:
        items:
          items:
            additionalProperties: false
            properties:
              defaultBranch:
                type: string
              fullName:
                type: string
              name:
                type: string
              private:
                type: boolean
              repositoryId:
                type: string
              url:
                type: string
            required:
              - repositoryId
              - fullName
              - name
              - url
              - defaultBranch
              - private
            type: object
          type: array
        nextPage:
          type:
            - number
            - 'null'
        truncated:
          type: boolean
      required:
        - items
        - nextPage
        - truncated
      type: object
    Gateway_GithubIntegrationError:
      additionalProperties: false
      properties:
        error:
          additionalProperties: false
          properties:
            code:
              type: string
            message:
              type: string
          required:
            - code
            - message
          type: object
      required:
        - error
      type: object
  responses:
    Gateway_GithubError:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Gateway_GithubIntegrationError'
      description: >-
        Operation rejected; see the stable error code. Rate-limited responses
        include Retry-After when available. When a write returns
        outcome_unknown, check its result before retrying.
      headers:
        Cache-Control:
          schema:
            enum:
              - no-store
            type: string
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      description: Itoflow access token issued for the Itoflow API.
      scheme: bearer
      type: http

````

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