Detect entities such as PII, PHI or PCI in a base64-encoded file using Private AI's entity detection engine. After entity detection, a copy of the file with all entities removed is created and returned.
This route is similar to /v3/process/files/uri
, but passes the file in the POST request itself. This route allows for simple setup and testing, as no folders or volumes need to be mounted to the container.
This route supports the following content types: application/json, application/msword, application/pdf, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/xml, message/rfc822, text/csv, text/plain, jpeg, jpeg, tiff, tiff, png, bmp, bmp, mp4, m4a, m4a, mp3, mp3, wav, wav
Successful Response
Validation Error
{- "processed_file": "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
}