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

# Get all folders



## OpenAPI

````yaml /openapi-components.json get /api/v1/folders
openapi: 3.0.0
info:
  title: StudyFetch API
  description: API documentation for StudyFetch
  version: '1.0'
  contact: {}
servers:
  - url: https://studyfetchapi.com
    description: Production API Server
security: []
tags: []
paths:
  /api/v1/folders:
    get:
      tags:
        - Folders
      summary: Get all folders
      operationId: findAll
      parameters:
        - name: parentFolderId
          required: false
          in: query
          description: Filter by parent folder
          schema:
            type: string
      responses:
        '200':
          description: Folders retrieved successfully
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/FolderResponse'
      security:
        - x-api-key: []
components:
  schemas:
    FolderResponse:
      type: object
      properties:
        _id:
          type: string
          description: Folder ID
        name:
          type: string
          description: Folder name
        organizationId:
          type: string
          description: Organization ID
        parentFolderId:
          type: string
          description: Parent folder ID
          nullable: true
        description:
          type: string
          description: Folder description
        status:
          type: string
          description: Folder status
          enum:
            - active
            - deleted
        metadata:
          description: Folder metadata
          allOf:
            - $ref: '#/components/schemas/FolderMetadataDto'
        createdAt:
          format: date-time
          type: string
          description: Creation date
        updatedAt:
          format: date-time
          type: string
          description: Last update date
      required:
        - _id
        - name
        - organizationId
        - status
        - createdAt
        - updatedAt
    FolderMetadataDto:
      type: object
      properties:
        color:
          type: string
          description: Folder color
        icon:
          type: string
          description: Folder icon
        materialCount:
          type: number
          description: Number of materials in folder
        totalSize:
          type: number
          description: Total size of materials in folder
        lastActivity:
          format: date-time
          type: string
          description: Last activity date
  securitySchemes:
    x-api-key:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API Key for server-to-server authentication. Resolves to the owning
        organization.

````