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

# Get Folder Contents

> Get the contents (entities) of a specific folder, identified by folderId or name+parentFolderId.



## OpenAPI

````yaml /public-apis/openapi/folders.json get /v1/folders/contents
openapi: 3.0.0
info:
  version: 1.0.0
  contact:
    name: Maxim Engineering
    email: eng@getmaxim.ai
  title: Maxim SDK API - folders
  description: API documentation for Maxim SDK folders endpoints
servers:
  - url: https://api.getmaxim.ai
security: []
paths:
  /v1/folders/contents:
    get:
      tags:
        - Folder contents
      summary: Get Folder Contents
      description: >-
        Get the contents (entities) of a specific folder, identified by folderId
        or name+parentFolderId.
      parameters:
        - schema:
            type: string
            minLength: 1
            description: Unique identifier for the workspace
          required: true
          name: workspaceId
          in: query
        - schema:
            type: string
            description: Unique identifier for the folder whose contents are to be fetched
          required: false
          name: folderId
          in: query
        - schema:
            type: string
            description: Name of the folder whose contents are to be fetched
          required: false
          name: name
          in: query
        - schema:
            type: string
            nullable: true
            description: ID of the parent folder (used with name for uniqueness)
          required: false
          name: parentFolderId
          in: query
        - schema:
            type: string
            enum:
              - WORKFLOW
              - PROMPT_CHAIN
              - DATASET
              - PROMPT
              - CONTEXT_SOURCE
              - PROMPT_COMPARISONS
              - LOG_REPOSITORY
              - PROMPT_TOOL
              - EVALUATOR
          required: true
          name: entityType
          in: query
        - schema:
            type: number
            nullable: true
            maximum: 100
            default: 20
            description: 'Maximum number of records to return (max: 100)'
          required: false
          name: limit
          in: query
        - schema:
            type: string
            nullable: true
            description: Cursor for pagination
          required: false
          name: cursor
          in: query
      responses:
        '200':
          description: Folder contents retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      nullable: true
                    description: Array of entities within the folder.
                  pagination:
                    type: object
                    properties:
                      nextCursor:
                        type: string
                        nullable: true
                      hasMore:
                        type: boolean
                    required:
                      - hasMore
                required:
                  - data
                  - pagination
        '400':
          description: Invalid request parameters
        '404':
          description: Folder not found
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-maxim-api-key
      description: API key for authentication

````