🚀 GLM-4.6 代码编程专享计划 • 限时优惠 Coding Plan ➞
cURL
curl --request GET \ --url https://open.bigmodel.cn/api/paas/v4/files \ --header 'Authorization: Bearer <token>'
{ "object": "list", "data": [ { "id": "<string>", "object": "file", "bytes": 123, "created_at": 123, "filename": "<string>", "purpose": "<string>" } ], "has_more": true }
获取已上传文件的分页列表,支持按用途和排序过滤。
使用以下格式进行身份验证:Bearer
分页游标
按用途过滤文件
batch
code-interpreter
agent
排序方式
created_at
每页返回的文件数量
1 <= x <= 100
业务处理成功
list
Hide child attributes
文件标识符
file
文件大小(字节)
文件创建的Unix时间戳
Unix
文件名
文件的预期用途
是否有更多数据