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

> Lists the building blocks used to assemble workflows: the catalog of available components, a specific set of components fetched by id, or the capabilities offered by the workflows hub.

**Example:** Browse the building blocks you can add to a workflow, with or without their schemas.

**Usage:** Set `view` to `hub_capabilities` for a compact list of every building block (optionally narrowed to one skill or one capability id), `components` for the same blocks with their full input and output schemas (with an optional text search; responses are large, so keep the page small), or `batch` to fetch the full schemas of specific blocks by their capability ids. The lists come back in pages of up to 100 (50 by default); ask for the next page by its number.

**Response:** the matching building blocks, each with its id, name, and description; components and batch results also carry each block's input and output schemas.



## OpenAPI

````yaml https://mcp.agents.writesonic.com/openapi.json post /api/v1/business/workflows/components
openapi: 3.1.0
info:
  title: 'hq-backend: Business API'
  description: Public Business API endpoints, authenticated with an API key.
  version: 0.1.0
servers:
  - url: https://api.agents.writesonic.com
security: []
paths:
  /api/v1/business/workflows/components:
    post:
      tags:
        - business
      summary: List workflow components
      description: >-
        Lists the building blocks used to assemble workflows: the catalog of
        available components, a specific set of components fetched by id, or the
        capabilities offered by the workflows hub.


        **Example:** Browse the building blocks you can add to a workflow, with
        or without their schemas.


        **Usage:** Set `view` to `hub_capabilities` for a compact list of every
        building block (optionally narrowed to one skill or one capability id),
        `components` for the same blocks with their full input and output
        schemas (with an optional text search; responses are large, so keep the
        page small), or `batch` to fetch the full schemas of specific blocks by
        their capability ids. The lists come back in pages of up to 100 (50 by
        default); ask for the next page by its number.


        **Response:** the matching building blocks, each with its id, name, and
        description; components and batch results also carry each block's input
        and output schemas.
      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
      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'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    WorkflowComponentArgs:
      properties:
        view:
          $ref: '#/components/schemas/WorkflowComponentView'
          description: >-
            view: Which component read to return. One of: components, batch,
            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
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      description: Writesonic API key
      in: header
      name: X-API-Key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.