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

# Recupera la struttura delle cartelle di Knowledge con il conteggio delle note.

> Restituisce l'intera struttura delle cartelle con il conteggio delle note per ciascuna cartella.

<div id="permissions">
  ## Autorizzazioni
</div>

Richiede un utente di servizio con l'autorizzazione `ManageAccountKnowledge` a livello Enterprise.


## OpenAPI

````yaml it/v3-openapi.yaml GET /v3/enterprise/knowledge/folders
openapi: 3.1.0
info:
  description: API Devin v3 con autenticazione utente di servizio e RBAC
  title: Devin API v3
  version: 3.0.0
servers: []
security:
  - bearerAuth: []
paths:
  /v3/enterprise/knowledge/folders:
    get:
      tags:
        - notes
      summary: >-
        Recupera la struttura delle cartelle di Knowledge con il conteggio delle
        note.
      description: >-
        Restituisce l'intera struttura delle cartelle con il conteggio delle
        note per ciascuna cartella.
      operationId: handle_list_folders_v3_enterprise_knowledge_folders_get
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FolderTreeResponse'
          description: Risposta riuscita
components:
  schemas:
    FolderTreeResponse:
      description: Risposta per l'endpoint della struttura delle cartelle.
      properties:
        folders:
          items:
            $ref: '#/components/schemas/FolderSummary'
          title: Folders
          type: array
        root_note_count:
          title: Root Note Count
          type: integer
      required:
        - folders
        - root_note_count
      title: FolderTreeResponse
      type: object
    FolderSummary:
      description: Una cartella nell'albero delle cartelle di Knowledge.
      properties:
        folder_id:
          title: Folder Id
          type: string
        name:
          title: Name
          type: string
        note_count:
          title: Note Count
          type: integer
        parent_folder_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Parent Folder Id
        path:
          title: Path
          type: string
      required:
        - folder_id
        - name
        - path
        - note_count
      title: FolderSummary
      type: object
  securitySchemes:
    bearerAuth:
      description: 'Credenziale dell''utente del servizio (prefisso: cog_)'
      scheme: bearer
      type: http

````