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 |
---|---|---|---|
fileId | string | true | File Unique Identification |
modelId | string | true | The unique identifier of the model |
Response body
Name | Type | Mandatory | Description |
---|---|---|---|
fileId | string | true | Unique identifier for uploaded files |
fileName | string | true | The file name of the uploaded file |
fileAddress | string | true | File 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
}