> ## 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 all folders in your component library, with their developer IDs, names, and parent folder (by developer ID; null when the folder sits directly under the library root). Folders are a separate namespace from project folders.



## OpenAPI

````yaml openapi.json get /componentFolders
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/v2
security: []
paths:
  /componentFolders:
    get:
      tags:
        - Component Folders
      summary: Fetch component folders
      description: >-
        Returns all folders in your component library, with their developer IDs,
        names, and parent folder (by developer ID; null when the folder sits
        directly under the library root). Folders are a separate namespace from
        project folders.
      responses:
        '200':
          description: Returns an array of all folders in the component library
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                      description: The developer ID of the folder
                    name:
                      type: string
                      description: The name of the folder
                    parentId:
                      type: string
                      nullable: true
                      description: >-
                        Developer ID of the parent folder, or null if the folder
                        sits directly under the library root
                  required:
                    - id
                    - name
                    - parentId
                example:
                  - id: inputs
                    name: Inputs
                    parentId: null
                  - id: text-fields
                    name: Text Fields
                    parentId: inputs
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization

````