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

# Get Folder

> Returns the details of a single [knowledge base](/line/knowledge-base) folder, including its documents and agents that have access to it



## OpenAPI

````yaml /latest.yml GET /agents/folders/{id}
openapi: 3.0.1
info:
  title: Cartesia API
  version: 0.0.1
servers:
  - url: https://api.cartesia.ai
    description: Production
security: []
paths:
  /agents/folders/{id}:
    get:
      tags:
        - Folders
      summary: Get Folder
      description: >-
        Returns the details of a single [knowledge base](/line/knowledge-base)
        folder, including its documents and agents that have access to it
      operationId: folders_get
      parameters:
        - $ref: '#/components/parameters/CartesiaVersionHeader'
        - name: id
          in: path
          description: The ID of the folder.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FolderResponse'
        '404':
          description: 'Folder not found (`error_code: kb_folder_not_found`).'
      security:
        - APIKeyAuth: []
components:
  parameters:
    CartesiaVersionHeader:
      name: Cartesia-Version
      in: header
      description: API version header.
      required: true
      schema:
        type: string
        format: date
        example: '2026-03-01'
        enum:
          - '2026-03-01'
  schemas:
    FolderResponse:
      title: FolderResponse
      type: object
      properties:
        id:
          type: string
          description: The ID of the folder.
        parent_id:
          type: string
          nullable: true
          description: The ID of the parent folder, or `null` for top-level folders.
        name:
          type: string
          description: The folder's name.
        created_at:
          type: string
          format: date-time
          description: When the folder was created.
        agents:
          type: array
          items:
            $ref: '#/components/schemas/FolderAgentSummary'
          description: Agents that have access to this folder.
        documents:
          type: array
          items:
            $ref: '#/components/schemas/FolderDocumentSummary'
          description: Documents inside this folder.
      required:
        - id
        - parent_id
        - name
        - created_at
        - agents
        - documents
    FolderAgentSummary:
      title: FolderAgentSummary
      type: object
      description: An agent that has access to this folder.
      properties:
        id:
          type: string
          description: The ID of the agent.
        name:
          type: string
          description: The name of the agent.
      required:
        - id
        - name
    FolderDocumentSummary:
      title: FolderDocumentSummary
      type: object
      description: >-
        A document summary as returned inside a folder. Does not include the
        document `content`.
      properties:
        id:
          type: string
          description: The ID of the document.
        name:
          type: string
          nullable: true
          description: The document's display name, or `null` if unnamed.
        created_at:
          type: string
          format: date-time
          description: When the document was uploaded.
        metadata:
          type: object
          additionalProperties:
            type: string
          description: User-defined string-keyed metadata.
      required:
        - id
        - name
        - created_at
        - metadata
  securitySchemes:
    APIKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Cartesia API key (`sk_car_...`). Get one at
        [play.cartesia.ai/keys](https://play.cartesia.ai/keys).

````