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

# Get Folder Path

> Get the breadcrumb path for a folder

## Overview

Returns the folder hierarchy path (breadcrumbs) from root to the specified folder. Useful for navigation UI.

## Path Parameters

<ParamField path="folderHash" type="string" required>
  The folder hash
</ParamField>

## Query Parameters

<ParamField query="vaultId" type="integer">
  Optional vault ID for encrypted folders
</ParamField>

## Response

<ResponseField name="path" type="array">
  Array of folder objects from root to target
</ResponseField>

<ResponseField name="status" type="string">
  Request status (`success`)
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl https://app.drime.cloud/api/v1/folders/MTExMzQ0fHBhZA/path \
    -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
  ```

  ```javascript JavaScript theme={null}
  const folderHash = 'MTExMzQ0fHBhZA';

  const response = await fetch(
    `https://app.drime.cloud/api/v1/folders/${folderHash}/path`,
    {
      headers: {
        'Authorization': 'Bearer YOUR_ACCESS_TOKEN'
      }
    }
  );

  const { path } = await response.json();

  // Build breadcrumb string
  const breadcrumb = path.map(f => f.name).join(' / ');
  console.log(breadcrumb); // "Documents / Projects / 2024"
  ```

  ```python Python theme={null}
  import requests

  folder_hash = 'MTExMzQ0fHBhZA'

  response = requests.get(
      f'https://app.drime.cloud/api/v1/folders/{folder_hash}/path',
      headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'}
  )

  path = response.json()['path']
  breadcrumb = ' / '.join(f['name'] for f in path)
  print(breadcrumb)
  ```
</RequestExample>

<ResponseExample>
  ```json 200 - Success theme={null}
  {
    "path": [
      {
        "id": 111344,
        "name": "Documents",
        "type": "folder",
        "path": "111344",
        "hash": "MTExMzQ0fHBhZA"
      },
      {
        "id": 111345,
        "name": "Projects",
        "type": "folder",
        "path": "111344/111345",
        "hash": "MTExMzQ1fHBhZA"
      },
      {
        "id": 111346,
        "name": "2024",
        "type": "folder",
        "path": "111344/111345/111346",
        "hash": "MTExMzQ2fHBhZA"
      }
    ],
    "status": "success"
  }
  ```
</ResponseExample>
