PII Anonymization API for Developers
Ship privacy-first applications with anonym.legal's developer-friendly API. REST endpoints for CI/CD integration, MCP Server for AI tools, and consistent anonymization across 48 languages.
The Challenge
Development teams face a constant tension between realistic test data and data protection:
- •Production data contains sensitive PII that cannot be used directly
- •Synthetic data often lacks the realism needed for meaningful testing
- •Manual anonymization is time-consuming and error-prone
- •Different environments need consistent, reproducible data
# Anonymize test data in CI/CD pipeline
curl -X POST https://anonym.legal/api/presidio/anonymize \
-H "Authorization: Bearer $API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"text": "Contact john@company.com", "anonymizers": {"DEFAULT": {"type": "replace"}}}'The Solution
Integrate PII anonymization directly into your development workflow with our RESTful API.
REST API
Simple JSON API for integration into any stack. Analyze and anonymize in a single request.
CI/CD Ready
Automate test data generation in your pipeline. Consistent results every time.
Reproducible
Same input, same output. Deterministic results for reliable testing.
Fast
Process thousands of records per minute. No GPU required.
API Endpoints
Simple REST API with bearer token authentication. Integrate in minutes.
| Endpoint | Method | Description |
|---|---|---|
| /api/presidio/analyze | POST | Detect PII entities in text |
| /api/presidio/anonymize | POST | Anonymize detected entities |
| /api/image | POST | Redact PII from images |
| /api/structured | POST | Process CSV/Excel files |
| /api/presidio/entities | GET | List supported entity types |
Integration Options
REST API
Standard REST endpoints with JSON payloads. Works with any language or framework.
- Bearer token authentication
- Batch processing support
- Webhook callbacks (Pro+)
MCP Server
Model Context Protocol integration for AI tools like Claude Desktop and VS Code.
- analyze, anonymize, deanonymize tools
- estimate_cost for pricing transparency
- Multi-language support in tool calls
Built for developers