upload

POST {{aig-domain}}/api/v3/document-tool/upload

upload file api.

processing flow:

  1. save file(PDF remove password protect)
  2. non-pdf file will convert to PDF
  3. Obtain the text content of the file by the Azure form recognizer (the result can be obtained by api /pdf-ocr-to-text)

support format:

  • pdf(support password)
  • doc\docx\docm\dotx\dotm\rtf
  • xls\xlsx\xlsb\xlsm\xltm\xltx
  • ppt\pptx\pptm\potx\ppsm\ppsx
  • vsd\vsdx
  • jpeg\jpg\jpx\bmp\png\gif\tiff
  • html\xhtml\txt\xml\csv

Request Body

[{"name"=>"file", "value"=>nil, "datatype"=>"null"}, {"name"=>"callback", "value"=>"{{callback}}", "datatype"=>"string"}, {"name"=>"password", "value"=>"{{password}}", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
iDox-API-Engine-Keystring

RESPONSES

status: OK

{"jobId":"6475c0515da3f276618acc38","taskCategory":"DOC_TOOL","taskSubcategory":"PRE_PROCESSING","status":"Processing","callback":"http://localhost:8080/test","startDateTime":"2023-05-30T09:22:25.360Z","expirationDateTime":"2023-05-31T09:22:25.360Z"}