File Page Query
Paginated file query, supports searching by file name, MD5, and other criteria, returns paginated results.
Interface Address:
text
/papi/file/pageRequest Method:
text
POSTContent-Type:
text
application/jsonHeader Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| X-Access-Key | string | Yes | API access key ID. See API Rules for authentication |
| X-Signature | string | Yes | Signature value, Base64-encoded HMAC-SHA256 hash |
| X-Timestamp | string | Yes | Millisecond Unix timestamp (13 digits) |
| X-Nonce | string | Yes | Random string, 10-32 lowercase alphanumeric characters |
Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| pageNo | integer | No | Page number, starting from 1, default 1 |
| pageSize | integer | No | Number of items per page, maximum 1000, default 10 |
| name | string | No | Search criteria (sid, name, md5) |
| type | integer | No | File type |
Request Example:
json
{
"pageNo": 1,
"pageSize": 10
}Response Parameters:
| Parameter | Type | Description |
|---|---|---|
| code | integer | Error code. See Error Codes |
| data | object | Response data |
| ├─ list | array[object] | File list |
| ├─├─ name | string | Application name |
| ├─├─ url | string | URL |
| ├─├─ path | string | Path |
| ├─├─ size | integer | File size |
| ├─├─ md5 | string | File MD5 value |
| ├─├─ ctime | integer | Creation time |
| ├─├─ utime | integer | Update time |
| ├─├─ version | string | Version |
| ├─├─ logo | string | Application icon |
| ├─├─ packageName | string | Package name |
| ├─├─ suffix | string | Suffix |
| ├─├─ ossPath | string | OSS path |
| ├─├─ rootOfficeId | integer | Team ID |
| ├─ total | integer | Total count |
| msg | string | Error message |
Response Example:
json
{
"code": 0,
"data": {
"list": [
{
"name": "",
"url": "",
"path": "",
"size": 0,
"md5": "",
"ctime": 0,
"utime": 0,
"version": "",
"logo": "",
"packageName": "",
"suffix": "",
"ossPath": "",
"rootOfficeId": 0
}
],
"total": 0
},
"msg": ""
}