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

# Integrations List

> Endpoint to retrieve a list of GPT integrations.
Restricted to root-level users. Supports optional filtering by integration state.

Args:
    state (Optional[State]): Optional query parameter to filter integrations by state
                             (e.g., `DRAFT`, `PUBLISHED`, etc.).

Returns:
    List[dict]: A list of integration records matching the query.

Raises:
    HTTPException 500: If an error occurs during retrieval.



## OpenAPI

````yaml get /api/integrations/list
openapi: 3.1.0
info:
  title: Apigene
  description: Apigene API
  version: 1.0.0
  contact:
    name: Apigene Support
    url: https://app.apigene.ai
    email: support@apigene.ai
servers:
  - url: https://app.apigene.ai
security:
  - BearerAuth: []
paths:
  /api/integrations/list:
    get:
      tags:
        - Integration
      summary: Integrations List
      description: >-
        Endpoint to retrieve a list of GPT integrations.

        Restricted to root-level users. Supports optional filtering by
        integration state.


        Args:
            state (Optional[State]): Optional query parameter to filter integrations by state
                                     (e.g., `DRAFT`, `PUBLISHED`, etc.).

        Returns:
            List[dict]: A list of integration records matching the query.

        Raises:
            HTTPException 500: If an error occurs during retrieval.
      operationId: integrations_list
      parameters:
        - name: state
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/State'
              - type: 'null'
            title: State
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerAuth: []
components:
  schemas:
    State:
      type: string
      enum:
        - draft
        - published
        - rejected
        - in_review
      title: State
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT Authorization header using the Bearer scheme. Example:
        'Authorization: Bearer {token}'

````