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

# List integrations

> List the workspace's connected apps and integration connections.

view=apps returns the app catalogue; apps_overview groups connections by app with active/inactive counts; connections lists individual connections (filter with q/app/status/access, and project_id to scope either list to one project); connection_detail returns one connection (needs connection_id). Credentials are never returned.



## OpenAPI

````yaml https://mcp.agent.writesonic.com/openapi.json post /api/v1/business/integrations/query
openapi: 3.1.0
info:
  title: hq-backend — Business API
  description: Public business tool endpoints (API-key auth).
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/business/integrations/query:
    post:
      tags:
        - business
      summary: List integrations
      description: >-
        List the workspace's connected apps and integration connections.


        view=apps returns the app catalogue; apps_overview groups connections by
        app with active/inactive counts; connections lists individual
        connections (filter with q/app/status/access, and project_id to scope
        either list to one project); connection_detail returns one connection
        (needs connection_id). Credentials are never returned.
      operationId: list_integrations_api_v1_business_integrations_query_post
      parameters:
        - name: X-Workspace-Id
          in: header
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            description: Overrides the key's workspace
            title: X-Workspace-Id
          description: Overrides the key's workspace
        - name: X-API-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: User API key
            title: X-Api-Key
          description: User API key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ListIntegrationsArgs'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ListIntegrationsArgs:
      properties:
        view:
          $ref: '#/components/schemas/IntegrationView'
          description: Which integrations view to return
        connection_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Connection Id
          description: >-
            Connection to act on: the `id` field of a connection read, not its
            `connection_id` field. Required for connection_detail.
        project_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Project Id
          description: >-
            Filter connections and apps_overview to connections usable from this
            project
        q:
          anyOf:
            - type: string
            - type: 'null'
          title: Q
          description: Free-text filter for apps_overview and connections
        app:
          anyOf:
            - type: string
            - type: 'null'
          title: App
          description: Filter connections by integration slug
        status:
          anyOf:
            - $ref: '#/components/schemas/ConnectionStatus'
            - type: 'null'
          description: >-
            Filter connections by the derived display status (e.g. active,
            inactive, expired). status=no_project_access only matches when
            that's the highest-precedence status - a connection that also has no
            project access but is expired/setup_pending shows as that status
            instead, not no_project_access. For 'which connections lack project
            access' (independent of other statuses), use `access` instead.
        access:
          anyOf:
            - $ref: '#/components/schemas/AccessFilter'
            - type: 'null'
          description: >-
            Filter connections by project access (has_access or no_access) - a
            direct, complete check independent of other status precedence.
            Prefer this over status=no_project_access when the question is
            purely about project accessibility.
        page:
          type: integer
          minimum: 1
          title: Page
          description: 1-based page number
          default: 1
        page_size:
          type: integer
          maximum: 100
          minimum: 1
          title: Page Size
          description: Items per page
          default: 50
      type: object
      required:
        - view
      title: ListIntegrationsArgs
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    IntegrationView:
      type: string
      enum:
        - apps
        - apps_overview
        - connections
        - connection_detail
      title: IntegrationView
    ConnectionStatus:
      type: string
      enum:
        - setup_pending
        - active
        - inactive
        - no_project_access
        - expired
      title: ConnectionStatus
      description: |-
        The status the frontend renders. Derived on read, never stored.

        Precedence (highest first): SETUP_PENDING > EXPIRED > INACTIVE >
        NO_PROJECT_ACCESS > ACTIVE. SETUP_PENDING wins so a connection awaiting
        post-connect configuration never shows as active or no-project-access.
    AccessFilter:
      type: string
      enum:
        - has_access
        - no_access
      title: AccessFilter
    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

````