> ## 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.

# Get Folder

> Get a folder by ID or name.



## OpenAPI

````yaml https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml get /folders/{folder_id_or_name}
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers: []
security: []
paths:
  /folders/{folder_id_or_name}:
    get:
      tags:
        - Folders
      summary: Get Folder
      description: Get a folder by ID or name.
      operationId: get_folder_folders__folder_id_or_name__get
      parameters:
        - name: folder_id_or_name
          in: path
          required: true
          schema:
            type: string
            title: Folder Id Or Name
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Folder'
        '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 folder = await client.folders.retrieve('folder_id_or_name');

            console.log(folder.id);
        - lang: cURL
          source: |-
            curl https://api.morphik.ai/folders/$FOLDER_ID_OR_NAME \
                -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

````