- 本站介绍
- 更新日志
- 新版网站介绍
- 自助开票系统使用文档
- Telegram Bot使用文档
- 自建Cloudflare Worker反代教程
- Files文件存储服务 开放API
- OAuth开放API
- Midjourney、SD图像生成 API
- Midjourney开放API接口
- 其它图像生成API
- Flux图像生成
- 管理API列表
- Claude
- OpenAI
- 其它开放API
用户查询 (分页)
line1
line1
POST
/api/v1/user/files/list
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
page
number
页码
pageSize
number
页大小
filename
string
文件名
tags
array[string]
Tag
purpose
string
用途
示例
{
"page": "1",
"pageSize": "10"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://cn2us02.opapi.win/api/v1/user/files/list' \
--header 'Content-Type: application/json' \
--data-raw '{
"page": "1",
"pageSize": "10"
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{
"statusCode": 200,
"message": "List Files Success",
"data": {
"total": 2,
"current_page": 1,
"page_size": 10,
"total_pages": 1,
"items": [
{
"user_id": "1",
"file_name": "new-pic.jpg",
"purpose": 0,
"uploaded_at": "2024-11-27T14:22:11.286Z",
"update_at": "2024-11-27T15:07:49.897Z",
"expires_at": null,
"file_size": "2241667",
"mime_type": "image/jpeg",
"tags": [],
"file_unique_id": "ENthMCy_5zr5zN3GRJseM",
"status": 2,
"is_public": true,
"share_enabled": false,
"share_path": null,
"share_expires_at": null,
"access_secret_enabled": false,
"access_secret": null,
"share_view_count": 0,
"share_dl_count": 0
},
{
"user_id": "1",
"file_name": "GdIDB9HakAAiVFK.jpg",
"purpose": 0,
"uploaded_at": "2024-11-27T11:14:03.806Z",
"update_at": "2024-11-27T11:14:03.806Z",
"expires_at": null,
"file_size": "2241667",
"mime_type": "image/jpeg",
"tags": null,
"file_unique_id": "Jmjq5JctrOPGBWop7sUOi",
"status": 2,
"is_public": true,
"share_enabled": false,
"share_path": null,
"share_expires_at": null,
"access_secret_enabled": false,
"access_secret": null,
"share_view_count": 0,
"share_dl_count": 0
}
]
}
}
修改于 2024-11-27 15:48:48