Base URL
Regional Endpoints
See Regions for details on data residency and region selection.
Authentication
All API requests require authentication using an API key in theX-API-Key header:
Getting Your API Key
- Sign up at app.blindfold.dev
- Navigate to API Keys in the dashboard
- Click Create API Key
- Copy and securely store your key
Request Format
All requests must:- Use
Content-Type: application/json - Include the
X-API-Keyheader - Send data as JSON in the request body
Response Format
All successful responses return JSON with:text: The processed textdetected_entities: Array of detected entities (if applicable)entities_count: Number of entities detected- Additional method-specific fields
Success Response (200 OK)
Error Response (4xx, 5xx)
Policy-Based Detection
Blindfold supports policy-based PII detection for simplified configuration and compliance. Instead of manually specifying entities and thresholds for each request, use pre-configured policies or create custom ones.Available Global Policies
Using Policies in API Calls
All detection endpoints (/detect, /tokenize, /mask, /redact, /hash, /encrypt) support an optional policy parameter:
Using policies simplifies your code and ensures consistent PII detection across your application. Policies can be managed through the dashboard.
Batch Processing
All privacy method endpoints support batch processing — send multiple texts in a single request by usingtexts (array) instead of text (string). Configuration parameters (policy, entities, score_threshold) apply to all texts in the batch.
Batch Request Format
Batch Response Format
Batch Limits
Batch Example
API Endpoints
Privacy Methods
Tokenize, mask, redact, hash, encrypt, synthesize
Utilities
Detokenization and health checks
Best Practices
Security, rate limiting, examples
Privacy Method Endpoints
These endpoints apply different privacy-preserving transformations to your text.Method Comparison
Choose the right privacy method for your use case:POST /detect
Detect PII in text without modifying it. Returns only the detected entities.
Response:
Unlike other methods,
/detect does not return a text field — it only returns the detected entities. Use this when you need to know what PII exists without transforming the text.POST /tokenize
Replace sensitive data with reversible tokens. Returns a mapping to restore original values.
Policy Usage Example:
Utility Endpoints
These endpoints provide utility functions and service information.POST /detokenize
Restore original values from tokens using the mapping from/tokenize.
Use with: /tokenize endpoint to complete the privacy-preserving workflow.
Response:
POST /mask
Partially hide sensitive data (e.g.,****-****-****-1234).
Response:
POST /redact
Permanently remove sensitive data.
Response:
POST /hash
Replace data with deterministic hashes.
Response:
POST /synthesize
Replace real data with realistic fake data.
Response:
POST /encrypt
Encrypt sensitive data using AES encryption.
Response:
GET /health
Health check endpoint.Supported Entity Types
All detection endpoints support filtering by entity type using natural language names (lowercase). Blindfold supports 60+ pre-trained entity types.View All Entities
See the complete list of 60+ entity types organized by category
Quick Reference
Personal Information
person- Person namesemail/email address- Email addressesphone number/mobile phone number- Phone numbersdate of birth- Birth datesblood type- Blood type classification
Contact Information
address/postal code- Physical addresses and postal codeslandline phone number- Fixed-line phone numbersfax number- Fax numbers
Financial
credit card number- Credit card numberscredit card brand- Card issuer (Visa, Mastercard, etc.)credit card expiration date- Card expiration datescvv/cvc- Card verification codesbank account number- Bank account numbersiban- International Bank Account Numberstax identification number- Tax IDs
Government IDs
social security number- Social security numberspassport number- Passport numbersdriver's license number- Driver’s licensesnational id number- National ID cardscpf- Brazilian individual taxpayer IDcnpj- Brazilian company registry
Healthcare
health insurance number- Health insurance IDsmedical condition- Medical diagnosesmedication- Medication namesinsurance company- Insurance provider names
Digital & Technical
ip address- IPv4 and IPv6 addressesusername- User identifierssocial media handle- Social media usernames
Travel & Transactions
flight number- Airline flight numbersreservation number- Booking confirmationstransaction number- Transaction IDs
Registration
license plate number- Vehicle platesstudent id number- Student IDsserial number- Product serial numbers
See the complete list of 60+ entity types in the Supported Entities documentation.
Plans & Limits
The API returns a
429 Too Many Requests response when you exceed your plan limits. Implement retry logic with exponential backoff for production use.
Error Codes
Best Practices
1. Store API Keys Securely
2. Handle Rate Limits
Implement exponential backoff for rate limit errors:3. Validate Responses
Always check the response status and handle errors:4. Use Connection Pooling
For high-throughput applications, use connection pooling:Complete Examples
Real-world integration patterns using the Blindfold REST API.AI Integration
Complete tokenize → AI → detokenize workflow
Compliance
GDPR, HIPAA, PCI DSS policy usage
Example 1: AI Integration with GDPR Compliance
Example 2: Healthcare Data with HIPAA Policy
Example 3: Payment Card Data with PCI DSS Policy
Need Help?
- Email Support: hello@blindfold.dev
- SDK Documentation: Python SDK | JavaScript SDK
- Examples: See practical examples