> ## 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.

# Get Connection

> 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_getConnection.



## OpenAPI

````yaml /openapi/itoflow-public.openapi.json post /integrations/github/getConnection
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/getConnection:
    post:
      tags:
        - GitHub
      summary: >-
        Read the current user’s GitHub connection status. If disconnected or
        reauthorization is required, call connect for provider consent, then
        read status again. installUrl manages GitHub App repository access;
        installing the app alone does not connect the account.
      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_getConnection.
      operationId: github_getConnection
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Gateway_Github_getConnection_Input'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Gateway_Github_getConnection_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_getConnection_Input:
      additionalProperties: false
      properties: {}
      type: object
    Gateway_Github_getConnection_Result:
      additionalProperties: false
      properties:
        installUrl:
          type:
            - string
            - 'null'
        providerSlug:
          type: string
        settingsUrl:
          type: string
        status:
          enum:
            - connected
            - disconnected
            - reauthorization_required
          type: string
      required:
        - status
        - providerSlug
        - settingsUrl
        - installUrl
      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.