Skip to Content
DocumentationAPI Reference集合

集合 API

集合 API 允许您浏览媒体库的文件夹结构。

列出集合

检索根级别或指定父集合内的集合(文件夹)列表。

GET /collections

参数

名称类型必填描述
pathstring可选父集合全路径 (例如,root/movies)。默认为 root

示例请求

GET /api/client/v1/collections?path=root/fitness Host: https://your-app.com Authorization: Bearer sk-your-api-key-here

示例响应:200 OK

{ "data": [ { "name": "瑜伽课程", "path": "root/fitness/yoga-sessions" }, { "name": "HIIT 训练", "path": "root/fitness/hiit-workouts" } ] }