List Files
Overview
The "List Files" API provides a list of uploaded files.
Request
POST https://api.docai.pro/api/identify/file/v2/list
Request Body
Name | Type | Mandatory | Description |
---|---|---|---|
pn | integer | true | Page number |
limit | integer | true | Step; the value of limit can be up to 100 |
data | object | true | Query parameters |
Data Format
Name | Type | Mandatory | Description |
---|---|---|---|
modelId | string | true | ID of the model |
startTime | long | false | Timestamp of the start time (optional) |
endTime | long | false | Timestamp of the end time (optional) |
Response Body
Name | Type | Mandatory | Description |
---|---|---|---|
fileId | string | true | Unique identifier for uploaded files |
fileName | string | true | The file name of the uploaded file |
createTime | long | true | Timestamp of the file upload time |
Example request
curl -i -X POST api.docai.pro/api/identify/file/v2/list \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $DOCAI_API_KEY" \
-d '{"modelId":"Your model Id"}'
Example response
{
"code": 200,
"data": [
{
"fileId": "2305111656594417165004800",
"fileName": "Invoice.png",
"createTime": "2022-10-11 10:22:32"
},
{
"fileId": "2305111656594417165004800",
"fileName": "Invoice.png",
"createTime": "2022-10-21 11:12:15"
}
],
"requestId": "49bd854af81048358219e57ae3c607a9",
"currentTimeMillis": 1683797919008
}