cURL
curl --request GET \ --url https://api-spectra.duplik.cn/v1/knowledge/{knowledge_id}/folders \ --header 'Authorization: Bearer <token>'
{ "folders": [ { "file_id": "<string>", "name": "<string>", "type": "<string>", "parent_id": "<string>", "parent_ids": [ "<string>" ], "children": [], "has_children": false, "level": 0, "permission_types": [] } ], "total": 123 }
获取知识库的目录结构
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
parent folder id
max level, if None no limit
Successful Response
Show child attributes