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 <your api key>
分页游标
按用途过滤文件
batch
file-extract
code-interpreter
agent
排序方式
created_at
每页返回的文件数量
1 <= x <= 100
业务处理成功
The response is of type object.
object
Was this page helpful?