> ## 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 workflow components

> List workflow building blocks. view='components' is the catalog, 'batch' fetches by capability_ids, 'hub_capabilities' lists the workflows-hub capabilities.



## OpenAPI

````yaml https://mcp.agent.writesonic.com/openapi.json post /api/v1/business/workflows/components
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/workflows/components:
    post:
      tags:
        - business
      summary: List workflow components
      description: >-
        List workflow building blocks. view='components' is the catalog, 'batch'
        fetches by capability_ids, 'hub_capabilities' lists the workflows-hub
        capabilities.
      operationId: list_workflow_components_api_v1_business_workflows_components_post
      parameters:
        - name: x-project-id
          in: header
          required: true
          schema:
            type: string
            format: uuid
            description: Project ID for tenant scoping
            title: X-Project-Id
          description: Project ID for tenant scoping
        - 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/WorkflowComponentArgs'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    WorkflowComponentArgs:
      properties:
        view:
          $ref: '#/components/schemas/WorkflowComponentView'
          description: '''components'' catalog, ''batch'' by ids, or ''hub_capabilities'''
        search:
          anyOf:
            - type: string
            - type: 'null'
          title: Search
          description: Free-text search (components view)
        capability_ids:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Capability Ids
          description: Capability ids to fetch (required for view='batch')
        skill_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Skill Id
          description: >-
            Hub skill id filter (hub_capabilities view) - pass this directly
            when the skill is already named; no need to list unfiltered first.
        capability_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Capability Id
          description: >-
            Hub capability id filter (hub_capabilities view) - pass this
            directly when the capability id is already known; no need to list
            unfiltered first.
        page:
          type: integer
          minimum: 1
          title: Page
          description: 1-based page
          default: 1
        size:
          type: integer
          maximum: 100
          minimum: 1
          title: Size
          description: Page size
          default: 50
      type: object
      required:
        - view
      title: WorkflowComponentArgs
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    WorkflowComponentView:
      type: string
      enum:
        - components
        - batch
        - hub_capabilities
      title: WorkflowComponentView
    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

````