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

# List Query Folders

> Returns all query folders belonging to the given project as a flat list.

<span style={{display: "flex", gap: "10px", flexDirection: "row", alignItems: "center"}}>
  <img src="https://cdn.peaka.com/badges/partner-api-key-badge.png" />

  <img src="https://cdn.peaka.com/badges/project-api-key-badge.png" />
</span>


## OpenAPI

````yaml get /data/projects/{projectId}/queries/folders
openapi: 3.0.1
info:
  title: Peaka Gateway API
  description: Peaka Gateway API Documentation
  version: '1.0'
servers:
  - url: https://partner.peaka.studio/api/v1
    description: Default Server URL (US Zone)
  - url: https://partner.eu.peaka.studio/api/v1
    description: EU Zone
security:
  - bearerAuth: []
paths:
  /data/projects/{projectId}/queries/folders:
    get:
      tags:
        - Data -- Query Folders
      summary: List Query Folders
      description: Returns all query folders belonging to the given project as a flat list.
      operationId: listQueryFolders
      parameters:
        - name: projectId
          in: path
          description: ID of the Project
          required: true
          schema:
            type: string
          example: mtKDhe1U
      responses:
        '200':
          description: Folders listed successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QueryFolderListResponse'
              example:
                items:
                  - id: 550e8400-e29b-41d4-a716-446655440000
                    name: Reports
                    path: /Reports
                    parentId: null
                    createdAt: '2025-01-15T10:30:00Z'
                  - id: 550e8400-e29b-41d4-a716-446655440001
                    name: Monthly
                    path: /Reports/Monthly
                    parentId: 550e8400-e29b-41d4-a716-446655440000
                    createdAt: '2025-01-15T10:31:00Z'
components:
  schemas:
    QueryFolderListResponse:
      type: object
      properties:
        items:
          type: array
          description: List of folders in the project
          items:
            $ref: '#/components/schemas/QueryFolderItem'
      description: Response containing a list of query folders
    QueryFolderItem:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the folder (UUID)
          example: 550e8400-e29b-41d4-a716-446655440000
        name:
          type: string
          description: Display name of the folder
          example: Monthly Reports
        path:
          type: string
          description: Full path of the folder in the hierarchy
          example: /reports/monthly
        parentId:
          type: string
          description: ID of the parent folder, null if root-level
          example: 550e8400-e29b-41d4-a716-446655440001
        createdAt:
          type: string
          description: Timestamp when the folder was created (ISO 8601)
          example: '2025-01-15T10:30:00Z'
      description: Represents a query folder
  securitySchemes:
    bearerAuth:
      type: http
      description: >-
        Use the Authorization header with the value 'Bearer <apiKey>' to
        authenticate. Partner API Keys have full access; Project API Keys are
        limited to their project scope. Learn more:
        https://docs.peaka.com/api-reference/authentication
      scheme: bearer
      bearerFormat: Api Key

````