---
title: "Get folder path hierarchy"
method: GET
path: "/matters/{matterId}/documents/folders/{folderId}/path"
tags: ["Folders"]
---

# Get folder path hierarchy

`GET /matters/{matterId}/documents/folders/{folderId}/path`

Returns the full folder hierarchy (path) as a collection ordered from the root folder down to the supplied folder.

The root folder is not included in the response.

## Path parameters

- `matterId` string, required
- `folderId` string, required

## Response `200`

When request is successful. Returns the folder path hierarchy.

- FolderPathSegmentCollection
  - `id` string, nullable
  - `href` string, nullable
  - `relation` string, nullable
  - `method` string, nullable
  - `self` Link
    - `id` string, nullable
    - `href` string, nullable
    - `relation` string, nullable
    - `method` string, nullable
  - `value` FolderPathSegment[], nullable
    - `id` string, nullable — Unique identifier of the folder
    - `name` string, nullable — Name of the folder
    - `parentId` string, nullable — Unique identifier of the parent folder
    - `depth` integer — The depth of the folder in the folder path hierarchy. 0 indicates the root folder, 1 indicates a direct child of that folder, and so on.

## Other responses

- `403` — When the requested matter does not belong to the account making the request.
- `404` — When folder with the specified id does not exist.

---

[API](https://skmtc.net/smokeball/apis/api.md) · [All operations](https://skmtc.net/smokeball/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smokeball/api/revisions/ffc7fffa0d5c/schema)
