Data masking, PII detection & GDPR
Privacy and compliance APIs for PII detection, data masking, and GDPR compliance.
Detect personal identifiable information in text. Identify names, emails, phone numbers, SSNs, and more.
POST /api/v1/privacy/pii-detect
{ "text": "Contact John at john@email.com
or call 555-123-4567" }
// Response
{ "pii_found": true,
"entities": [
{ "type": "name", "value": "John" },
{ "type": "email", "value": "john@email.com" },
{ "type": "phone", "value": "555-123-4567" }
] }
Mask sensitive data including SSN, credit cards, and personal information. Configurable masking patterns.
POST /api/v1/privacy/mask
{ "text": "SSN: 123-45-6789,
Card: 4111-1111-1111-1111",
"types": ["ssn", "credit_card"] }
// Response
{ "masked_text": "SSN: ***-**-6789,
Card: ****-****-****-1111",
"items_masked": 2 }
Anonymize datasets while preserving utility. K-anonymity, l-diversity, and differential privacy techniques.
POST /api/v1/privacy/anonymize
{ "data": [
{ "name": "John", "age": 32, "zip": "10001" }
],
"method": "k-anonymity",
"k": 5 }
// Response
{ "anonymized_data": [
{ "name": "***", "age": "30-35", "zip": "100**" }
],
"utility_score": 0.85 }
Track and manage user consent. Store consent records, check consent status, and handle revocations.
POST /api/v1/privacy/consent
{ "user_id": "user_123",
"purpose": "marketing",
"action": "grant" }
// Response
{ "consent_id": "cons_abc123",
"status": "granted",
"timestamp": "2025-01-15T10:30:00Z",
"expires": "2026-01-15T10:30:00Z" }
Check data for GDPR compliance issues. Identify violations, assess risk levels, and get remediation guidance.
POST /api/v1/privacy/gdpr-check
{ "data_fields": ["email", "ip_address",
"purchase_history"],
"processing_purpose": "analytics" }
// Response
{ "compliant": false,
"issues": [
{ "field": "ip_address",
"issue": "requires_consent",
"severity": "high" }
],
"recommendations": [...] }
Get your API key and start implementing privacy controls in minutes.