Detect entities such as PII, PHI, PCI, or CCI in the file located at the provided URI using Private AI's entity detection engine. After entity detection, a copy of the file with all entities removed is created and placed in the folder specified by PAI_OUTPUT_FILE_DIR
on the local host.
This route is similar to /process/files/base64
, but relies on URIs instead of base64-encoded strings. As this route avoids the overhead of base64 encoding, it is more suitable for processing large files and large volumes of data.
This route supports the following content types: application/dicom, application/json, application/msword, application/pdf, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/vnd.openxmlformats-officedocument.presentationml.presentation, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/xml, audio/m4a, audio/mp3, audio/mp4, audio/mp4a-latm, audio/mpeg, audio/wav, audio/webm, audio/x-wav, image/bmp, image/jpeg, image/jpg, image/png, image/tif, image/tiff, image/x-ms-bmp, text/csv, text/plain
Successful Response
Validation Error
{- "result_uri": "string",
- "processed_text": "string",
- "entities": [
- {
- "processed_text": "string",
- "text": "string",
- "location": {
- "stt_idx": 0,
- "end_idx": 0,
- "stt_idx_processed": 0,
- "end_idx_processed": 0
}, - "best_label": "string",
- "labels": {
- "property1": 0,
- "property2": 0
}
}
], - "entities_present": true,
- "languages_detected": {
- "property1": 0,
- "property2": 0
}, - "audio_duration": 0,
- "page_count": 0
}