Skip to main content

File Access

Overview

The "File Access" API allows you to download uploaded files.

Request

GET https://api.docai.pro/api/identify/file/v2/access

Path parameters

Name    Type   Mandatory   Description
fileIdstringtrueFile Unique Identification
modelIdstringtrueThe unique identifier of the model      

Response body

Name  Type   Mandatory   Description
fileIdstringtrueUnique identifier for uploaded files
fileNamestringtrueThe file name of the uploaded file
fileAddressstringtrueFile access address

Example request

curl -i -X GET api.docai.pro/api/identify/file/v2/access?fileId=2305111656594417165004800&modelId=yourModelId \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $DOCAI_API_KEY" \

Example response

{
"code": 200,
"data": {
"fileId": "2305111656594417165004800",
"fileName": "Invoice.png",
"fileAddress": "https://"
},
"requestId": "49bd854af81048358219e57ae3c607a9",
"currentTimeMillis": 1683797919008
}