# DLPApi

## inspect

Perform data inspection to identify sensitive information in text

```
DLPApi.inspect(text, informationTypes)
```

Parameters

```
text: Text to be inspected for sensitive information as str.
informationTypes: List of information types to search for in the text.
```

Returns

```
A Result object indicating the success or failure of the inspection operation.
```

## redactImage

Redact sensitive information from an image.

```
DLPApi.redactImage(byteImage, imageType, informationType)
```

Parameters

```
byteImage: Byte data representing the image to be redacted.
imageType: Type of the image (e.g., IMAGE_JPEG, IMAGE_PNG).
informationType: Type of information to redact from the image.
```

Returns

```
A Result object indicating the success or failure of the redaction operation.
```

## redactPII

Redact Personally Identifiable Information (PII) from text.

```
DLPApi.redactPII(text)
```

Parameters

```
text: Text containing PII to be redacted as str.
```

Returns

```
A Result object indicating the success or failure of the redaction operation.
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://trillo.gitbook.io/trillo-workbench-python-sdk/dlpapi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
