Method: Redact

Redacts potentially sensitive info from a file

Description

Redacts potentially sensitive info from a document . This method has limits on input size, processing time, and output size.

When no detectors are specified in this request, the system will automatically choose what detectors to run.

HTTP request

POST https://dlp.rpa.insystechinc.com/api/dlp/redact

Request body

The request body contains data with the following structure:

{ 
  "redact":  {
    "redactType": string, 
    "sourceData": string, 
    "sourceFileName": string
    "detectors": [ string ]
    }
}

Fields

Description

redactType

string

Configuration for specifying the type of redaction. Supported types include IMAGE , FILE, or AUDIO

sourceData

string (base64string)

Payload to be redacted as a base64string

sourceFileName

string

The configuration for specifying the name of the file to be redacted including the file extension.

detectors

string

Response body

If successful, the response contains the file stream that is sent back to be downloaded.

When using the redactType of FILE, the file returned is converted to PDF, otherwise the file is returned same format it is sent.

Last updated