---
title: "List Folders"
method: GET
path: "/v2/folders"
tags: ["Folder API"]
---

# List Folders

`GET /v2/folders`

List a team's folders of a given item_type as a flat list (use parent_folder_id to reconstruct the tree).

## Query parameters

- `teamId` string, required — The ID of the team.
- `itemType` 'FOLDER_ITEM_TYPE_UNSPECIFIED' | 'FOLDER_ITEM_TYPE_FOLDER' | 'FOLDER_ITEM_TYPE_WORKFLOW' | 'FOLDER_ITEM_TYPE_GUIDANCE', required — Types of items that can appear in folder contents.
- `parentFolderId` string — Optional. When set, return only the direct children of this folder. When unset, return all folders of the given type for the team (a flat list; use parent_folder_id to reconstruct the tree).
- `pageSize` integer — Maximum number of results to return. Default is 1000, maximum is 2000. When neither page_size nor page_token is set, all results are returned.
- `pageToken` string — Token for pagination. Leave empty for the first request.

## Response `200`

Success

- SvflowPublicapiListFoldersResponse
  - `data` SvflowPubapimodelsFolder[] — The folders. Use parent_folder_id to reconstruct the tree.
    - `id` string — The ID of the folder.
    - `teamId` string — The ID of the team that the folder belongs to.
    - `name` string — The name of the folder.
    - `itemType` 'FOLDER_ITEM_TYPE_UNSPECIFIED' | 'FOLDER_ITEM_TYPE_FOLDER' | 'FOLDER_ITEM_TYPE_WORKFLOW' | 'FOLDER_ITEM_TYPE_GUIDANCE' — Types of items that can appear in folder contents.
    - `parentFolderId` string, nullable — The ID of the parent folder. Unset when the folder is at the root of the team's folder tree.
  - `nextPageToken` string, nullable — Token for retrieving the next page of results. Empty if no more results.

## Other responses

- `default` — Error

---

[API](https://skmtc.net/serval/apis/serval-public-api.md) · [All operations](https://skmtc.net/serval/apis/serval-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/serval/serval-public-api/versions/0549515e9384/schema)
