---
title: "Detect and optionally redact PII"
method: POST
path: "/v1/tools/pii-detect"
tags: ["AI"]
---

# Detect and optionally redact PII

`POST /v1/tools/pii-detect`

## Request

- Base URL: `https://archtools.dev`
- URL: `https://archtools.dev/v1/tools/pii-detect`
- Auth: API key in header `x-api-key`

## Request body

- object
  - `text` string, required: Text to scan for PII
  - `redact` boolean: Whether to return redacted version of the text

## Response `200`

Detected PII items with optional redacted text

---

[API](https://skmtc.dev/archtools/apis/arch-tools-api.md) · [All operations](https://skmtc.dev/archtools/apis/arch-tools-api/llms.txt) · [OpenAPI document](https://skmtc.dev/archtools/apis/arch-tools-api/revisions/ed6c1f974033?raw)
