Skip to main content
POST
/
v3
/
process
/
files
/
uri
Process Files Uri
curl --request POST \
  --url https://api.private-ai.com/deid/v3/process/files/uri \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "uri": "https://example.com/example-image.jpeg",
  "entity_detection": {
    "accuracy": "high",
    "return_entity": true
  },
  "pdf_options": {
    "density": 150
  },
  "audio_options": {
    "bleep_start_padding": 0,
    "bleep_end_padding": 0
  }
}
'
{
  "result_uri": "<string>",
  "processed_text": "<string>",
  "entities": [
    {
      "processed_text": "<string>",
      "text": "<string>",
      "location": {
        "stt_idx": 123,
        "end_idx": 123,
        "stt_idx_processed": 123,
        "end_idx_processed": 123
      },
      "best_label": "<string>",
      "labels": {}
    }
  ],
  "entities_present": true
}

Authorizations

x-api-key
string
header
required

Headers

x-api-key
string
default:""

Body

application/json
uri
string
required

URI of the file to be processed. It can be an URL (e.g www.foo.com/files/random-image.jpeg) or an accessible file path on the host machine (e.g. /Users/sam/files/file.pdf).

entity_detection
Entity Detection · object

This section contains a set of parameters to control the PII detection process. All fields have sensible default that can be changed for specific needs.

pdf_options
Pdf Options · object

Options to process PDF files, such as the rendering quality when each page is turned into an image.

audio_options
Audio Options · object

Options to process audio files, such as the padding to add while redacting audio segments.

Response

Successful Response

result_uri
string
required

URI of the processed file in the output directory (e.g. /Users/sam/files/file.redacted.pdf).

processed_text
string
required

This field contains the redacted version of any text that was extracted from the input file. It corresponds to a redacted ASR transcript for audio files and any text found inside a document such as a PDF or image file.

entities
FileEntityItem · object[]
required

A list of all entities found in the provided file.

entities_present
boolean
required

Returns True if the list of detected entities is not empty.