Process Files Uri
Detect entities such as PII, PHI or PCI 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.
The uri may be a local file path, an s3:// URI, or an HTTP or HTTPS URL. An HTTP or HTTPS URL, including a presigned S3 URL, is downloaded only when its host is listed in PAI_ALLOWED_HTTP_DOMAINS. Redirects are not followed.
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/gif, image/jpeg, image/jpg, image/png, image/tif, image/tiff, image/x-ms-bmp, text/csv, text/plain, text/xml
Body
URI of the file to be processed. This can be a file path on the host machine (for example /Users/sam/files/file.pdf), an s3:// URI, or an HTTP or HTTPS URL. An HTTP or HTTPS URL, including a presigned S3 URL, is downloaded only when its host is listed in PAI_ALLOWED_HTTP_DOMAINS. Redirects are not followed.
Response
Successful Response