> ## Documentation Index
> Fetch the complete documentation index at: https://microstrate-1133-notifications-prefs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# List collections

> Retrieves a list of collections



## OpenAPI

````yaml /api-reference/endpoint/hub-flows/openapi.json get /hub/collections
openapi: 3.0.0
info:
  title: quiva.ai Gateway
  description: API for managing collections, nodes, and workflows in quiva.ai Hub
  version: 0.1.0
  contact:
    name: quiva.ai Support
servers:
  - url: https://api.quiva.ai
    description: Production API server
security:
  - bearerAuth: []
  - apiKeyAuth: []
tags:
  - name: Collections
    description: Operations related to collections
  - name: Nodes
    description: Operations related to nodes
  - name: Workflows
    description: Operations related to workflows
  - name: Oauth
    description: Oauth configurations and connections
paths:
  /hub/collections:
    get:
      tags:
        - Collections
      summary: List collections
      description: Retrieves a list of collections
      operationId: getCollection
      parameters:
        - $ref: '#/components/parameters/queryCollectionType'
      responses:
        '200':
          description: Collection retrieved successfully
          content:
            application/json:
              schema:
                type: object
                required:
                  - results
                  - results_total
                properties:
                  results:
                    type: object
                    properties:
                      results:
                        type: array
                        description: Array of results
                        items:
                          $ref: '#/components/schemas/GetCollectionResponse'
                      results_total:
                        type: integer
                        description: Number of results
              examples:
                AllCollections:
                  summary: List all collections (no filter)
                  value:
                    results_total: 4
                    results:
                      - collection_type: node
                        description: Payment processing node templates
                        modified: 1748533179
                        name: Payment Nodes
                        sequence: 16
                        subject: ms.hub.config.collection.node.805092869
                        topic: '805092869'
                        type: created
                      - collection_type: node
                        description: Utility functions for data transformation
                        modified: 1748533200
                        name: Data Transform Nodes
                        sequence: 24
                        subject: ms.hub.config.collection.node.1025086208
                        topic: '1025086208'
                        type: updated
                      - collection_type: workflow
                        description: Order lifecycle management
                        modified: 1748533250
                        name: Order Flows
                        sequence: 31
                        subject: ms.hub.config.collection.workflow.1508781670
                        topic: '1508781670'
                        type: created
                      - collection_type: workflow
                        description: ''
                        modified: 1748533300
                        name: Notification Flows
                        sequence: 45
                        subject: ms.hub.config.collection.workflow.2098761234
                        topic: '2098761234'
                        type: created
                NodeCollectionsOnly:
                  summary: List node collections only
                  value:
                    results_total: 2
                    results:
                      - collection_type: node
                        description: Payment processing node templates
                        modified: 1748533179
                        name: Payment Nodes
                        sequence: 16
                        subject: ms.hub.config.collection.node.805092869
                        topic: '805092869'
                        type: created
                      - collection_type: node
                        description: Utility functions for data transformation
                        modified: 1748533200
                        name: Data Transform Nodes
                        sequence: 24
                        subject: ms.hub.config.collection.node.1025086208
                        topic: '1025086208'
                        type: updated
                WorkflowCollectionsOnly:
                  summary: List workflow collections only
                  value:
                    results_total: 2
                    results:
                      - collection_type: workflow
                        description: Order lifecycle management
                        modified: 1748533250
                        name: Order Flows
                        sequence: 31
                        subject: ms.hub.config.collection.workflow.1508781670
                        topic: '1508781670'
                        type: created
                      - collection_type: workflow
                        description: ''
                        modified: 1748533300
                        name: Notification Flows
                        sequence: 45
                        subject: ms.hub.config.collection.workflow.2098761234
                        topic: '2098761234'
                        type: created
                EmptyResult:
                  summary: No collections found
                  value:
                    results_total: 0
                    results: []
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                InvalidSubject:
                  value:
                    error: invalid subject
components:
  parameters:
    queryCollectionType:
      name: collection_type
      in: query
      description: >-
        List only 'node' or only 'workflow' collections. If this parameter is
        omitted, both will be listed
      required: false
      schema:
        type: string
        enum:
          - node
          - workflow
      example: node
  schemas:
    GetCollectionResponse:
      type: object
      required:
        - name
        - topic
        - subject
        - sequence
        - type
        - modified
      properties:
        name:
          type: string
          description: Name of the collection
        collection_type:
          type: string
          description: Type of the collection (node or workflow)
        topic:
          type: string
          description: Hash of the collection name
        description:
          type: string
          description: Description of the collection
        subject:
          type: string
          description: Subject identifier for the collection
        sequence:
          type: integer
          description: >-
            The sequence number of the last message for this collection on the
            stream
        modified:
          $ref: '#/components/schemas/Modified'
        type:
          type: string
          description: Last event type - created or updated
          enum:
            - created
            - updated
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Error message
    Modified:
      type: integer
      description: Timestamp of last modification
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT Authorization header using the Bearer scheme
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key

````