Skip to main content

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

NameTypeMandatoryDescription
pnintegertruePage number
limitintegertrueStep; the value of limit can be up to 100
dataobjecttrueQuery parameters

Data Format

NameTypeMandatoryDescription
modelIdstringtrueID of the model
startTimelongfalseTimestamp of the start time (optional)
endTimelongfalseTimestamp of the end time (optional)

Response Body

NameTypeMandatoryDescription
fileIdstringtrueUnique identifier for uploaded files
fileNamestringtrueThe file name of the uploaded file
createTimelongtrueTimestamp 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
}