Docs/Agent Tools/GET /v1/pii-redact

GET /v1/pii-redactPII redaction tool

Agent Tools lf-agent-tools

Blacks out personal details in text so the rest can be shared safely. Modes: email, phone, ssn, credit_card, ip, or all. Returns redacted text, pii_found items, total_redactions, and a redaction_map.

Query Parameters

ParameterTypeRequiredDescription
textstringYesText to redact
modesstringNoemail, phone, ssn, credit_card, ip, or all

Response Schema

redacted (string): Redacted text
pii_found (array): Detected PII items
total_redactions (integer): Count redacted
redaction_map (object): Counts by type

cURL Example

curl 'https://lf-agent-tools.laminarforge.dev/v1/pii-redact?text=<text>' -H 'Authorization: Bearer lf_YourApiKey'

Python Example

import requests
url = 'https://lf-agent-tools.laminarforge.dev/v1/pii-redact'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'text': '<text>'}
response = requests.get(url, headers=headers, params=params)
print(response.json())