AI Support Guide

Simpli Redact

PII detection and data sanitization for AI-safe support data.

Redact makes your support data safe for AI consumption. Scan conversations and KB articles for credit card numbers, SSNs, emails, phone numbers, and addresses — then redact them before feeding data to AI models.

Simpli Redact provides PII detection, automatic redaction, batch risk scanning, and safety validation for support data.

Configuration

VariableDefaultDescription
APP_PORT8014Server port
LITELLM_MODELopenai/gpt-5-miniLLM model for PII detection
REDACT_REPLACEMENT[REDACTED]Replacement string for detected PII
DETECT_TYPEScredit_card,ssn,email,phone,address,name,account_numberPII types to detect
CORS_ORIGINS*Allowed CORS origins (comma-separated)

Start the server

simpli-redact serve

API endpoints

All endpoints are under the /api/v1 prefix.

POST /api/v1/redact

Redact PII from text, returning sanitised versions.

Request:

{
  "texts": [
    {"text": "My card is 4111-1111-1111-1111 and email is john@example.com"},
    {"text": "Call me at 555-123-4567"}
  ],
  "replacement": "[REMOVED]"
}

Response:

{
  "scan_id": "s-abc123",
  "total_texts": 2,
  "results": [
    {
      "index": 0,
      "original_text": "My card is 4111-1111-1111-1111 and email is john@example.com",
      "redacted_text": "My card is [REMOVED] and email is [REMOVED]",
      "redaction_count": 2
    }
  ],
  "total_redactions": 3
}

POST /api/v1/detect

Detect PII without redacting — returns entity locations and types.

POST /api/v1/scan

Batch risk summary — how much PII is in your dataset, broken down by type.

POST /api/v1/validate

Pre-flight safety check for a single text — returns safe: true/false.

GET /health

Health check.

Next steps

On this page