> ## Documentation Index
> Fetch the complete documentation index at: https://alibi.itsdote.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# alibi_sdk.redaction

> Secret / PII redaction — generated from python/alibi_sdk source.

Secret / PII redaction for bodies, SQL, and observation payloads.

*Source:* [`python/alibi_sdk/alibi_sdk/redaction.py`](https://github.com/valid22/alibi-ai/blob/main/python/alibi_sdk/alibi_sdk/redaction.py)

## `DEFAULT_PII_PATHS`

Module-level export.

## `REDACTED`

Module-level export.

### `redact_sql`

```python theme={null}
def redact_sql(sql: str) -> str
```

Mask sensitive literals in SQL text.

**Parameters**

| Name | Type |
| - | - |
| `sql` | `str` |

**Returns**

`str`

### `redact_value`

```python theme={null}
def redact_value(value: Any, extra_paths: Optional[Iterable[str]] = None, path: str = '') -> Any
```

Recursively redact secrets/PII from JSON-ish structures.

**Parameters**

| Name | Type |
| - | - |
| `value` | `Any` |
| `extra_paths` | `Optional[Iterable[str]]` |
| `path` | `str` |

**Returns**

`Any`

### `redact_headers`

```python theme={null}
def redact_headers(headers: dict[str, str]) -> dict[str, str]
```

**Parameters**

| Name | Type |
| - | - |
| `headers` | `dict[str, str]` |

**Returns**

`dict[str, str]`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.