---
title: "Load folder and subfolders by path"
method: GET
path: "/api/v1/folder/siteId/{siteId}/path/{path}"
tags: ["Folders"]
---

# Load folder and subfolders by path

`GET /api/v1/folder/siteId/{siteId}/path/{path}`

Finds a folder by the given path within the specified site and returns the folder along with all its subfolders, respecting the user's permissions.

## Path parameters

- `siteId` string, required
- `path` string, required

## Response `200`

Folder and subfolders retrieved successfully

- ResponseEntityFolderWithSubfoldersView
  - `errors` ErrorEntity[]
    - `errorCode` string
    - `message` string
    - `fieldName` string
  - `entity` FolderView
    - `path` string
    - `defaultFileType` string
    - `filesMasks` string
    - `getiDate` string, date-time
    - `hostId` string
    - `identifier` string
    - `inode` string
    - `modDate` string, date-time
    - `name` string
    - `showOnMenu` boolean
    - `sortOrder` integer
    - `title` string
    - `type` string
    - `subFolders` FolderView[]
  - `messages` MessageEntity[]
    - `message` string
  - `i18nMessagesMap` object
  - `permissions` string[]
  - `pagination` Pagination
    - `currentPage` integer
    - `perPage` integer
    - `totalEntries` integer

## Other responses

- `401` — Authentication required
- `403` — Insufficient permissions
- `404` — Folder not found

---

[API](https://skmtc.dev/jostens/apis/dotcms-rest-api.md) · [All operations](https://skmtc.dev/jostens/apis/dotcms-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/jostens/dotcms-rest-api/revisions/a088fe9f515c/schema)
