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

# List document folders

> Returns every folder that organizes the knowledge base's documents in one response; `parentID` nests a folder inside another and is null at the top level. Use a folder's `id` as `folderID` to file a document under it.



## OpenAPI

````yaml /specs-prettified/realtime/openapi.stable.json get /v1/stable/document-folder
openapi: 3.0.0
info:
  title: Realtime
  description: Realtime gateway API service
  version: 1.0.0
  contact: {}
servers:
  - url: https://realtime-api.voiceflow.com
security: []
tags: []
paths:
  /v1/stable/document-folder:
    get:
      tags:
        - Document Folder
      summary: List document folders
      description: Returns every folder that organizes the knowledge base's documents
        in one response; `parentID` nests a folder inside another and is null at
        the top level. Use a folder's `id` as `folderID` to file a document
        under it.
      operationId: StableDocumentFolderController_list
      parameters:
        - name: projectID
          required: true
          in: query
          schema:
            type: string
            description: The ID of the project to operate on.
        - name: environmentAlias
          required: true
          in: query
          schema:
            type: string
            description: The alias of the environment to operate on (e.g. `main`).
      responses:
        "200":
          description: Returns every knowledge base folder in the environment, each with
            its ID, name, parent folder ID, and timestamps.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StableDocumentFolderListResponse"
          x-vf-doc:
            description: Returns every knowledge base folder in the environment, each with
              its ID, name, parent folder ID, and timestamps.
      security:
        - token: []
components:
  schemas:
    StableDocumentFolderListResponse:
      type: object
      properties:
        folders:
          type: array
          items:
            $ref: "#/components/schemas/StableDocumentFolder"
      required:
        - folders
    StableDocumentFolder:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
          minLength: 1
          maxLength: 255
          description: The name of the folder.
        parentID:
          nullable: true
          description: The ID of the folder this folder is nested in, or null for a
            top-level folder.
          type: string
          minLength: 1
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - name
        - parentID
        - createdAt
        - updatedAt
  securitySchemes:
    token:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: Voiceflow bearer token
````
