> ## 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.

# Get a collection

> Retrieves a specific collection



## OpenAPI

````yaml /api-reference/endpoint/hub-flows/openapi.json get /hub/collections/{collection_type}/{collection_topic}
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/{collection_type}/{collection_topic}:
    parameters:
      - $ref: '#/components/parameters/collectionType'
      - $ref: '#/components/parameters/collectionTopic'
    get:
      tags:
        - Collections
      summary: Get a collection
      description: Retrieves a specific collection
      operationId: getCollection
      responses:
        '200':
          description: Collection retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetCollectionResponse'
              examples:
                NodeCollection:
                  summary: Retrieved node collection
                  value:
                    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
                WorkflowCollection:
                  summary: Retrieved workflow collection
                  value:
                    collection_type: workflow
                    description: Order lifecycle management workflows
                    modified: 1748533250
                    name: Order Flows
                    sequence: 124
                    subject: ms.hub.config.collection.workflow.1508781670
                    topic: '1508781670'
                    type: updated
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                InvalidSubject:
                  value:
                    error: invalid subject
components:
  parameters:
    collectionType:
      name: collection_type
      in: path
      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
    collectionTopic:
      name: collection_topic
      in: path
      description: >-
        The topic is a hash of the name that was used when a collection was
        created
      required: true
      schema:
        type: string
      example: '1234567890'
  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

````