DokuBrain
Platform

PII Detection

Automatic detection and redaction of personally identifiable information.

PII Detection

DokuBrain automatically scans documents for personally identifiable information (PII) and can flag or redact it based on your governance policies.

Detected PII types

TypeExamples
Social Security Number123-45-6789
Credit card number4111 1111 1111 1111
Email addressjane@example.com
Phone number(555) 123-4567
Date of birth01/15/1990
Driver's licenseState-specific formats
Passport numberCountry-specific formats
Bank account numberRouting + account numbers
IP address192.168.1.1
Physical addressStreet addresses

Configuration

PII detection runs automatically when enabled in your governance policy. Configure the action for each PII type:

ActionBehavior
flagMark the document with PII findings (no modification)
redactReplace PII with [REDACTED] in extracted text
quarantineMove document to quarantine for review
blockReject the document entirely

Viewing PII findings

Get PII findings for a document
curl https://api.dokubrain.com/api/v1/documents/doc_abc123/pii \
  -H "Authorization: Bearer YOUR_API_KEY"
Response
{
  "success": true,
  "data": {
    "findings": [
      {
        "type": "ssn",
        "location": { "page": 1, "offset": 245 },
        "action": "redacted"
      },
      {
        "type": "email",
        "location": { "page": 2, "offset": 1024 },
        "action": "flagged"
      }
    ],
    "summary": {
      "total": 2,
      "redacted": 1,
      "flagged": 1
    }
  }
}

On this page