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

# List Folders

> List all folders the user has access to.



## OpenAPI

````yaml https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml get /folders
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers: []
security: []
paths:
  /folders:
    get:
      tags:
        - Folders
      summary: List Folders
      description: List all folders the user has access to.
      operationId: list_folders_folders_get
      parameters:
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Folder'
                title: Response List Folders Folders Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-codeSamples:
        - lang: JavaScript
          source: |-
            import Morphik from 'morphik';

            const client = new Morphik({
              apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
            });

            const folders = await client.folders.list();

            console.log(folders);
        - lang: cURL
          source: |-
            curl https://api.morphik.ai/folders \
                -H "Authorization: Bearer $MORPHIK_API_KEY"
components:
  schemas:
    Folder:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        full_path:
          anyOf:
            - type: string
            - type: 'null'
          title: Full Path
        parent_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Parent Id
        depth:
          anyOf:
            - type: integer
            - type: 'null'
          title: Depth
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        document_ids:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Document Ids
        system_metadata:
          additionalProperties: true
          type: object
          title: System Metadata
        summary_storage_key:
          anyOf:
            - type: string
            - type: 'null'
          title: Summary Storage Key
        summary_version:
          anyOf:
            - type: integer
            - type: 'null'
          title: Summary Version
        summary_bucket:
          anyOf:
            - type: string
            - type: 'null'
          title: Summary Bucket
        summary_updated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Summary Updated At
        app_id:
          anyOf:
            - type: string
            - type: 'null'
          title: App Id
        end_user_id:
          anyOf:
            - type: string
            - type: 'null'
          title: End User Id
        child_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Child Count
      type: object
      required:
        - name
      title: Folder
      description: Represents a folder that contains documents
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````