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

# Fetch component folders

> Returns an object of component folders in the requesting user's workspace.



## OpenAPI

````yaml openapi-legacy.json get /component-folders
openapi: 3.0.0
info:
  version: 1.0.0
  title: Ditto API
  description: Programmatically read and write data in your Ditto workspace.
servers:
  - url: https://api.dittowords.com/v1
security: []
paths:
  /component-folders:
    get:
      tags:
        - Components Folders
      summary: Fetch component folders
      description: >-
        Returns an object of component folders in the requesting user's
        workspace.
      responses:
        '200':
          description: Returns component folders
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: string
                example:
                  folder_1: Folder 1
                  folder_2: Folder 2
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization

````