Enterprise Redaction API
Enterprise-Grade Security: Our API is designed for mission-critical applications with 99.9% uptime SLA, enterprise support, and compliance certifications.
The Redaction API is a powerful, enterprise-grade solution designed to automatically detect and remove or mask Personally Identifiable Information (PII) and other sensitive data from your text content with military-grade precision.
Enterprise Security
Bank-level encryption and security protocols trusted by Fortune 500 companies.
50+ Data Types
Detect and redact dozens of sensitive data types with AI-powered recognition.
Compliance Ready
Built-in GDPR, CCPA, HIPAA, and SOX compliance features out of the box.
By integrating our API, you can easily process text to ensure compliance with privacy regulations like GDPR and CCPA, protect user data, and secure confidential information before it's stored or shared. The API can identify dozens of information types, from credit card numbers to email addresses, and offers flexible options for how the data is redacted.
Authentication
Secure Authentication: All API keys are encrypted at rest and in transit using AES-256 encryption with rotating keys.
API requests should be sent to the secure endpoint:
Base URL: https://www.anonymizationapi.com/api/
A valid API key is required to access our enterprise API endpoints. API keys are available through our enterprise subscription plans. After obtaining a plan, log in to your dashboard to retrieve your unique API key.
Include your API key in all requests as a parameter:
api_key: your_api_key_here
Security Notice: Replace your_api_key_here with your actual API key. Keep your API key secure and never expose it in client-side code or public repositories.
Response Format: All successful HTTP responses return status code 200 with JSON-formatted data according to our API specification.
Usage & Limits
Credit Monitoring
Each API response includes your total_credits and remaining_credits for real-time usage tracking.
Flexible Scaling
Easily upgrade your plan or purchase additional credits through our pricing page when needed.
Usage Monitoring: Monitor your API usage in real-time through your dashboard. Set up alerts to notify you when approaching credit limits.
Submit a POST request with your text content and specify which sensitive data types to redact. Our AI-powered engine returns two processed versions: complete removal (redact) and structured replacement (mask).
AI-Powered Detection: Our machine learning algorithms continuously improve detection accuracy, achieving 99.7% precision across all supported data types.
Redaction Options
Complete Removal
Sensitive data is completely removed from the text, leaving clean, compliant content.
Structured Masking
Data is replaced with labeled placeholders like [EMAIL], [PHONE] for context preservation.
Specify data types to redact using the mask parameter. Our enterprise platform supports comprehensive detection across multiple categories:
Personal Information
- • Email Address
- • Phone Number
- • Driver's License
- • SSN
- • Passport Number
Financial Data
- • Credit Card Number
- • CVV Number
- • IBAN Code
- • Account Numbers
- • Routing Numbers
Technical Data
- • IP Address
- • AWS Credentials
- • Azure Auth Token
- • API Keys
- • Database URLs
Healthcare & Legal
- • Medical Records
- • Prescription Data
- • Legal Case Numbers
- • Patient IDs
- • Insurance Claims
50+ Types Available: This represents just a sample of our detection capabilities.
Contact our enterprise team for the complete list of supported data types.
Comprehensive Enterprise Example
The following example demonstrates our API processing a complex enterprise document containing 15+ sensitive data types commonly found in business communications:
Sample Input Document
CONFIDENTIAL EMPLOYEE RECORD - ACQUISITION DUE DILIGENCE
Employee: Sarah Johnson (
[email protected])
SSN: 123-45-6789 | Employee ID: EMP-2024-7891
Phone: +1 (555) 123-4567 | Emergency Contact: (555) 987-6543
Driver's License: D12345678901234 (CA)
Home Address: 1247 Silicon Valley Blvd, San Jose, CA 95110
Date of Birth: 1985-03-15 | Gender: Female | Marital Status: Married
FINANCIAL INFORMATION:
Bank Account: 4532-1122-3344-5566 (Wells Fargo)
Credit Card: 4111 1111 1111 1111 | CVV: 123 | Exp: 12/26
Salary: $125,000/year | Tax ID: 98-7654321
IBAN: GB29 NWBK 6016 1331 9268 19
Routing Number: 121042882
TECHNICAL ACCESS:
Corporate IP: 10.0.1.42 | VPN IP: 192.168.100.55
AWS Access Key: AKIA1234567890ABCDEF
API Token: sk-1234567890abcdefghijklmnop
Database URL: postgres://user:
[email protected]:5432/prod
Azure Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Im
MEDICAL INFORMATION:
Insurance: Blue Cross ID BC-123456789
Medical Record #: MR-789456123
Prescription: Metformin 500mg daily
Emergency Contact Medical: Dr. Smith (555) 111-2222
LEGAL & COMPLIANCE:
Case Number: CV-2024-001234
Patent Application: US20240123456A1
Contract ID: CTR-2024-789123
cURL Request
curl -X POST -H 'Content-Type: application/x-www-form-urlencoded' \
-d 'parameters=CONFIDENTIAL EMPLOYEE RECORD...&mask=Email Address,SSN,Phone Number,Credit Card Number,CVV Number,IP Address,AWS Credentials,API Token,Medical Records,Legal Case Number,Driver License,Bank Account,IBAN Code,Address,Date of Birth&api_key=your_api_key' \
'https://www.anonymizationapi.com/api/redact.php'
API Parameters
Parameter |
Type |
Description |
parameters |
string |
The input text document to be processed for PII detection and redaction. |
mask |
string |
Comma-separated list of sensitive data types to detect and redact (e.g., "Email Address,Phone Number,Credit Card Number"). |
format |
string |
(Optional) Response format: "structured" for [EMAIL] labels or "mask" for character replacement. Defaults to "structured". |
api_key |
string |
(Required) Your unique enterprise API key for authentication. |
Enterprise API Response
The API returns a comprehensive JSON response with both redaction formats:
{
"redact": "CONFIDENTIAL EMPLOYEE RECORD - ACQUISITION DUE DILIGENCE\n\nEmployee: Sarah Johnson ()\nSSN: | Employee ID: EMP-2024-7891\nPhone: | Emergency Contact: \nDriver's License: (CA)\nHome Address: \nDate of Birth: | Gender: Female | Marital Status: Married\n\nFINANCIAL INFORMATION:\nBank Account: (Wells Fargo)\nCredit Card: | CVV: | Exp: 12/26\nSalary: $125,000/year | Tax ID: 98-7654321\nIBAN: \nRouting Number: 121042882\n\nTECHNICAL ACCESS:\nCorporate IP: | VPN IP: \nAWS Access Key: \nAPI Token: \nDatabase URL: \nAzure Token: \n\nMEDICAL INFORMATION:\nInsurance: Blue Cross ID \nMedical Record #: \nPrescription: Metformin 500mg daily\nEmergency Contact Medical: Dr. Smith ()\n\nLEGAL & COMPLIANCE:\nCase Number: \nPatent Application: US20240123456A1\nContract ID: CTR-2024-789123",
"mask": "CONFIDENTIAL EMPLOYEE RECORD - ACQUISITION DUE DILIGENCE\n\nEmployee: Sarah Johnson ([EMAIL])\nSSN: [SSN] | Employee ID: EMP-2024-7891\nPhone: [PHONE] | Emergency Contact: [PHONE]\nDriver's License: [DRIVER_LICENSE] (CA)\nHome Address: [ADDRESS]\nDate of Birth: [DATE_OF_BIRTH] | Gender: Female | Marital Status: Married\n\nFINANCIAL INFORMATION:\nBank Account: [BANK_ACCOUNT] (Wells Fargo)\nCredit Card: [CREDIT_CARD] | CVV: [CVV] | Exp: 12/26\nSalary: $125,000/year | Tax ID: 98-7654321\nIBAN: [IBAN]\nRouting Number: 121042882\n\nTECHNICAL ACCESS:\nCorporate IP: [IP_ADDRESS] | VPN IP: [IP_ADDRESS]\nAWS Access Key: [AWS_CREDENTIALS]\nAPI Token: [API_TOKEN]\nDatabase URL: [DATABASE_URL]\nAzure Token: [AZURE_TOKEN]\n\nMEDICAL INFORMATION:\nInsurance: Blue Cross ID [MEDICAL_ID]\nMedical Record #: [MEDICAL_RECORD]\nPrescription: Metformin 500mg daily\nEmergency Contact Medical: Dr. Smith ([PHONE])\n\nLEGAL & COMPLIANCE:\nCase Number: [LEGAL_CASE]\nPatent Application: US20240123456A1\nContract ID: CTR-2024-789123",
"detected_types": [
"Email Address", "SSN", "Phone Number", "Driver License", "Address",
"Date of Birth", "Bank Account", "Credit Card Number", "CVV Number",
"IBAN Code", "IP Address", "AWS Credentials", "API Token",
"Database URL", "Azure Token", "Medical ID", "Medical Record", "Legal Case Number"
],
"status": 200,
"total_credits": 100000,
"remaining_credits": 99982,
"processing_time_ms": 247
}
Enterprise SDKs & Code Examples
Production-ready code examples for seamless integration into your enterprise applications. All examples include error handling, retry logic, and security best practices.
Official SDKs Available: Download our official SDKs for Python, Node.js, Java, C#, and Go with built-in authentication, error handling, and retry mechanisms.
Python Integration
import http.client
import urllib.parse
import json
import logging
# Configure enterprise logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
def redact_sensitive_data(text_content, data_types, api_key):
"""
Enterprise-grade PII redaction with error handling and logging
"""
try:
conn = http.client.HTTPSConnection("www.anonymizationapi.com")
payload = urllib.parse.urlencode({
'parameters': text_content,
'mask': ','.join(data_types),
'format': 'structured',
'api_key': api_key
})
headers = {
'Content-Type': 'application/x-www-form-urlencoded',
'User-Agent': 'Enterprise-PII-Redaction/1.0'
}
conn.request("POST", "/api/redact.php", payload, headers)
response = conn.getresponse()
data = response.read().decode("utf-8")
if response.status == 200:
result = json.loads(data)
logger.info(f"Successfully redacted {len(result.get('detected_types', []))} data types")
return result
else:
logger.error(f"API request failed with status {response.status}")
return None
except Exception as e:
logger.error(f"Redaction failed: {str(e)}")
return None
finally:
conn.close()
# Enterprise usage example
sensitive_document = """
Employee John Smith (
[email protected])
SSN: 123-45-6789, Phone: (555) 123-4567
Credit Card: 4111-1111-1111-1111
"""
data_types = ['Email Address', 'SSN', 'Phone Number', 'Credit Card Number']
result = redact_sensitive_data(sensitive_document, data_types, 'your_api_key')
if result:
print("Redacted:", result['mask'])
print("Detected Types:", result['detected_types'])
Node.js/JavaScript Integration
const https = require('https');
const querystring = require('querystring');
class EnterpriseRedactionAPI {
constructor(apiKey) {
this.apiKey = apiKey;
this.baseURL = 'www.anonymizationapi.com';
}
async redactData(textContent, dataTypes) {
return new Promise((resolve, reject) => {
const postData = querystring.stringify({
'parameters': textContent,
'mask': dataTypes.join(','),
'format': 'structured',
'api_key': this.apiKey
});
const options = {
hostname: this.baseURL,
port: 443,
path: '/api/redact.php',
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
'Content-Length': Buffer.byteLength(postData),
'User-Agent': 'Enterprise-PII-Redaction-JS/1.0'
}
};
const req = https.request(options, (res) => {
let data = '';
res.on('data', (chunk) => data += chunk);
res.on('end', () => {
try {
const result = JSON.parse(data);
if (result.status === 200) {
console.log(`✅ Successfully processed ${result.detected_types.length} data types`);
resolve(result);
} else {
reject(new Error(`API Error: ${result.status}`));
}
} catch (error) {
reject(new Error(`JSON Parse Error: ${error.message}`));
}
});
});
req.on('error', (error) => reject(error));
req.write(postData);
req.end();
});
}
}
// Enterprise usage
const api = new EnterpriseRedactionAPI('your_api_key');
const sensitiveText = `
Customer Sarah Johnson (
[email protected])
Credit Card: 4532-1234-5678-9012 | CVV: 123
Phone: +1-555-987-6543 | IP: 192.168.1.100
`;
api.redactData(sensitiveText, ['Email Address', 'Credit Card Number', 'CVV Number', 'Phone Number', 'IP Address'])
.then(result => {
console.log('Structured Output:', result.mask);
console.log('Clean Output:', result.redact);
console.log('Credits Remaining:', result.remaining_credits);
})
.catch(error => console.error('Redaction failed:', error));
Enterprise Error Handling
Robust Error Handling: Our enterprise API provides detailed error responses with actionable guidance and 24/7 support escalation for critical issues.
All API responses include a status field. Status code 200 indicates successful processing. Our enterprise SLA guarantees comprehensive error reporting and rapid resolution.
HTTP Status Codes
Status Code |
Description |
Resolution |
200 |
Success: Request processed successfully. |
✅ Continue processing the response data. |
400 |
Bad Request: Malformed request structure or invalid parameters. |
🔧 Verify request format, parameters, and Content-Type headers. |
401 |
Unauthorized: Invalid or missing API key authentication. |
🔑 Check API key validity and ensure it's included in the request. |
403 |
Quota Exceeded: Monthly API credit limit reached. |
💳 Upgrade plan or purchase additional credits via dashboard. |
422 |
Invalid Parameters: Missing required fields or invalid data types. |
📋 Ensure parameters and mask are provided correctly. |
500 |
Server Error: Internal processing error occurred. |
🆘 Contact enterprise support with request details for immediate assistance. |
24/7 Enterprise Support
Dedicated support team available around the clock for enterprise customers. Average response time: < 15 minutes for critical issues.
Contact Support
Status & Monitoring
Real-time API status dashboard with performance metrics, uptime monitoring, and proactive incident notifications.
View Status