---
title: "List wiki folders"
method: GET
path: "/knowledgebase/{kb_id}/wiki/folders"
tags: ["Wiki"]
---

# List wiki folders

`GET /knowledgebase/{kb_id}/wiki/folders`

Retrieve the direct child folders of a parent folder (parent_id empty = root level), each with its page count and a has-children flag for the directory tree.

## Path parameters

- `kb_id` string, required

## Query parameters

- `parent_id` string

## Response `200`

OK

- GithubComTencentWeKnoraInternalTypesWikiFolderListResponse
  - `folders` GithubComTencentWeKnoraInternalTypesWikiFolderNode[]
    - `created_at` string
    - `deleted_at` GormDeletedAt
      - `time` string
      - `valid` boolean — Valid is true if Time is not NULL
    - `depth` integer
    - `has_children` boolean
    - `id` string
    - `knowledge_base_id` string
    - `name` string
    - `page_count` integer
    - `parent_id` string
    - `path` string
    - `sort_order` integer
    - `tenant_id` integer
    - `updated_at` string
  - `parent_id` string

## Other responses

- `400` — Bad Request

## Changes

- **2026-06-22** `d113fcd208b2` — 1 info
  - endpoint added
- **2025-12-16** `edf61e68559d` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/tencentblueking/apis/weknora-api/changes/knowledgebase/:kb_id/wiki/folders/get.md)

---

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