Detect PII
POST /predict — local RoBERTa model with confidence scores.
Validate PII
POST /validate — compliance pass/fail before storing or forwarding text.
Filter by type (optional):
Mask PII
POST /mask — redact detected spans.
Batch PII
POST /predict/batch — one line per text (max 50).
Anonymize & save tokens
POST /api/v1/anonymize — middleware applies policies and stores mappings.
PII entity types
GET /entities — labels supported by the RoBERTa model.
Detect PHI
POST /phi/predict — OpenAI backend (local model later).
Validate PHI
POST /phi/validate — check for Protected Health Information.
Filter by label (optional):
Mask PHI
POST /phi/mask — redact detected PHI spans.
Batch PHI
POST /phi/predict/batch — one clinical note per line (max 50).
Anonymize PHI
POST /phi/anonymize — detect and redact PHI with mapping preview.
PHI entity labels
GET /phi/entities — HIPAA + clinical labels with display names.