---
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

---

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