> For a complete page index, fetch https://docs.synthflow.ai/llms.txt. For full documentation content, fetch https://docs.synthflow.ai/llms-full.txt.

# PII Redaction API parameter

> Turn on PII redaction for an agent through the API with the redact_pii parameter.

A new `redact_pii` parameter has been added to the Agent endpoints, allowing you to enable PII (Personally Identifiable Information) redaction via the API.

**Updated endpoints:**

| Endpoint                                                                               | Title           |
| -------------------------------------------------------------------------------------- | --------------- |
| [**POST /assistants**](/api-reference/platform-api/agents/create-assistant)            | Create an agent |
| [**PUT /assistants/\{model_id}**](/api-reference/platform-api/agents/update-assistant) | Update an agent |

When `redact_pii` is set to `true`, sensitive data is automatically removed from transcripts, post-call webhook payloads, and internal logs. Redacted data types include:

* Credit card numbers, expiration dates, and CVVs
* Social security numbers
* Names, email addresses, phone numbers, and physical addresses

See [Security & Compliance](/security-and-compliance) for more information.