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

# List Harness integrations

> Lists Harness Code SCM integrations for your company. Requires the `integrations.view_integration` permission.



## OpenAPI

````yaml /api-reference/openapi.json get /integrations/harness
openapi: 3.0.0
info:
  title: Corgea API
  version: 1.0.0
  description: >-
    API for interacting with Corgea's scanning and vulnerability management
    features
servers:
  - url: https://www.corgea.app/api/v1
    description: Production server
security:
  - CorgeaToken: []
  - BearerAuth: []
paths:
  /integrations/harness:
    get:
      tags:
        - Harness integrations
      summary: List Harness integrations
      description: >-
        Lists Harness Code SCM integrations for your company. Requires the
        `integrations.view_integration` permission.
      operationId: listHarnessIntegrations
      parameters:
        - name: page
          in: query
          schema:
            type: integer
            minimum: 1
            default: 1
        - name: page_size
          in: query
          description: Number of integrations per page (maximum 50).
          schema:
            type: integer
            minimum: 1
            maximum: 50
            default: 20
      responses:
        '200':
          description: Harness integrations retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HarnessIntegrationListResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: API access or required permission denied
components:
  schemas:
    HarnessIntegrationListResponse:
      type: object
      required:
        - status
        - integrations
        - page
        - total_pages
        - total_integrations
      properties:
        status:
          type: string
          enum:
            - ok
        integrations:
          type: array
          items:
            $ref: '#/components/schemas/HarnessIntegration'
        page:
          type: integer
        total_pages:
          type: integer
        total_integrations:
          type: integer
    HarnessIntegration:
      type: object
      description: A Harness Code SCM integration. Credential values are never returned.
      required:
        - id
        - uuid
        - type
        - name
        - account_id
        - account_name
        - org_allowlist
        - base_url
        - gateway_prefix
        - expired
      properties:
        id:
          type: integer
        uuid:
          type: string
          format: uuid
        type:
          type: string
          enum:
            - harness
        name:
          type: string
        account_id:
          type: string
          description: Harness account ID derived from the token.
        account_name:
          type: string
        org_allowlist:
          type: array
          description: >-
            Harness organization identifiers available to this integration. An
            empty list allows every organization accessible to the token.
          items:
            type: string
        base_url:
          type: string
          format: uri
        gateway_prefix:
          type: string
        expired:
          type: boolean
        created_at:
          type: string
          format: date-time
          nullable: true
        updated_at:
          type: string
          format: date-time
          nullable: true
  responses:
    Unauthorized:
      description: Invalid or missing token
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: Missing or invalid authorization header
  securitySchemes:
    CorgeaToken:
      type: apiKey
      in: header
      name: CORGEA-TOKEN
      description: API key for authentication
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: OAuth2 access token (JWT) in the Authorization header

````