{ "opencollection": "1.0.0", "info": { "name": "Moonshot AI Files API", "version": "1.0.0" }, "items": [ { "info": { "name": "Files", "type": "folder" }, "items": [ { "info": { "name": "文件列表", "type": "http" }, "http": { "method": "GET", "url": "https://api.moonshot.cn/v1/files", "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "列出当前用户上传的所有文件。" }, { "info": { "name": "上传文件", "type": "http" }, "http": { "method": "POST", "url": "https://api.moonshot.cn/v1/files", "body": { "type": "multipart-form", "data": [ { "name": "file", "type": "text", "value": "" }, { "name": "purpose", "type": "text", "value": "" } ] }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "上传文件用于内容提取、图片理解或视频理解。" }, { "info": { "name": "获取文件信息", "type": "http" }, "http": { "method": "GET", "url": "https://api.moonshot.cn/v1/files/:file_id", "params": [ { "name": "file_id", "value": "", "type": "path", "description": "文件标识符" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "获取指定已上传文件的元数据。" }, { "info": { "name": "删除文件", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.moonshot.cn/v1/files/:file_id", "params": [ { "name": "file_id", "value": "", "type": "path", "description": "文件标识符" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "删除一个已上传的文件。" }, { "info": { "name": "获取文件内容", "type": "http" }, "http": { "method": "GET", "url": "https://api.moonshot.cn/v1/files/:file_id/content", "params": [ { "name": "file_id", "value": "", "type": "path", "description": "文件标识符" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "获取以 `file-extract` 用途上传的文件的提取文本内容。" } ] } ], "bundled": true }