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

# List your git integrations

> Lists the git provider accounts (currently GitHub) connected to your personal account, and the app installations on them that give access to repositories.



## OpenAPI

````yaml /spec/platform-auth.yaml get /v1/me/git-integrations
openapi: 3.0.1
info:
  title: Authentication & Account
  version: 1.0.0
  description: >-
    Log in, issue API tokens, change or reset your password, set up two-factor
    authentication, verify your email address and phone number, and manage your
    account profile and billing contact details.
servers:
  - url: https://api.liara.ir
security:
  - bearerAuth: []
tags:
  - name: Login
    description: Exchange your credentials or a one-time code for an API token.
  - name: Registration
    description: Create a new account.
  - name: Password
    description: Change your password while logged in, or reset a forgotten one.
  - name: API Tokens
    description: Issue additional API tokens for your account.
  - name: Account
    description: Read and update your profile and billing contact details.
  - name: Two-Factor Authentication
    description: Set up and manage authenticator-app (TOTP) two-factor authentication.
  - name: Verification
    description: Verify, or change, your account's email address and phone number.
paths:
  /v1/me/git-integrations:
    get:
      tags:
        - Account
      summary: List your git integrations
      description: >-
        Lists the git provider accounts (currently GitHub) connected to your
        personal account, and the app installations on them that give access to
        repositories.
      operationId: getMyGitIntegrations
      responses:
        '200':
          description: Your git integrations.
          content:
            application/json:
              schema:
                type: object
                properties:
                  gitProviderIntegrations:
                    type: array
                    items:
                      $ref: '#/components/schemas/GitProviderIntegration'
                  gitRepositoryIntegrations:
                    type: array
                    items:
                      $ref: '#/components/schemas/GitRepositoryIntegration'
              example:
                gitProviderIntegrations:
                  - _id: '000000000000000000000004'
                    provider: github
                    metaData:
                      login: your-github-username
                      id: 1000000
                      avatar_url: https://example.com/avatar.png
                      type: User
                      email: you@example.com
                    checkInfo: true
                    lastCheckedInfoAt: '2026-01-01T08:00:00.000Z'
                    createdAt: '2026-01-01T08:00:00.000Z'
                    updatedAt: '2026-01-01T08:00:00.000Z'
                gitRepositoryIntegrations:
                  - _id: '000000000000000000000005'
                    providerIntegration: '000000000000000000000004'
                    metaData:
                      account:
                        login: your-github-username
                        id: 1000000
                        type: User
                      repository_selection: selected
                      app_slug: <app-slug>
                      target_type: User
                      permissions:
                        contents: read
                        metadata: read
                      events:
                        - push
                    createdAt: '2026-01-01T08:00:00.000Z'
                    updatedAt: '2026-01-01T08:00:00.000Z'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    GitProviderIntegration:
      type: object
      description: A git provider account connected to your Liara account.
      properties:
        _id:
          type: string
        provider:
          type: string
          enum:
            - github
        metaData:
          type: object
          description: Details of the connected account on the provider.
          properties:
            login:
              type: string
            id:
              type: integer
            avatar_url:
              type: string
              format: uri
            type:
              type: string
              description: Account type on the provider, for example `User`.
            email:
              type: string
              format: email
              description: The account's primary verified email address on the provider.
        checkInfo:
          type: boolean
          description: >-
            `false` after a request to the provider failed for this connection
            (for example, because access was revoked). Reconnect to restore it.
        lastCheckedInfoAt:
          type: string
          format: date-time
          description: When the account details were last refreshed from the provider.
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    GitRepositoryIntegration:
      type: object
      description: >-
        An app installation on a connected git account that gives access to its
        repositories.
      properties:
        _id:
          type: string
        providerIntegration:
          type: string
          description: ID of the `GitProviderIntegration` it belongs to.
        metaData:
          type: object
          properties:
            account:
              type: object
              description: The user or organization the app is installed on.
              properties:
                login:
                  type: string
                id:
                  type: integer
                type:
                  type: string
            repository_selection:
              type: string
              description: '`all` repositories, or only `selected` ones.'
              enum:
                - all
                - selected
            app_slug:
              type: string
            target_type:
              type: string
              description: '`User` or `Organization`.'
            permissions:
              type: object
              description: Repository permissions granted to the installation.
              additionalProperties:
                type: string
            events:
              type: array
              description: Events the installation is subscribed to.
              items:
                type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    AuthError:
      type: object
      description: Error body returned when the API token is rejected.
      properties:
        error:
          type: string
  responses:
    Unauthorized:
      description: The API token is missing, invalid or expired.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/AuthError'
          example:
            error: Unauthorized.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Send your API token as `Authorization: Bearer <api-token>`. Tokens
        expire (30 days by default) and stop working when you change or reset
        your password.

````

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