بقلم George Curta ·
PII Anonymization API for Developers
An anonymization API is a developer endpoint that strips PII from text inside your own pipelines. Ship privacy-first applications with anonym.legal's REST endpoints for CI/CD integration, MCP Server for AI tools, and consistent anonymization across 48 languages.
التحدي
تواجه فرق التطوير توتراً مستمراً بين واقعية بيانات الاختبار وحماية البيانات:
- •بيانات الإنتاج تحتوي على بيانات شخصية حساسة لا يمكن استخدامها مباشرة
- •البيانات الاصطناعية غالباً تفتقر إلى الواقعية اللازمة للاختبار الهادف
- •إخفاء الهوية اليدوي مستهلك للوقت ومعرّض للأخطاء
- •البيئات المختلفة تحتاج إلى بيانات متسقة وقابلة للاستنساخ
# 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"}}}'الحل
دمج إخفاء هوية البيانات الشخصية مباشرة في سير عمل التطوير عبر RESTful API.
REST API
API JSON بسيط للتكامل مع أي تقنية. تحليل وإخفاء هوية في طلب واحد.
جاهز لـ CI/CD
أتمتة توليد بيانات الاختبار في خط الأنابيب. نتائج متسقة في كل مرة.
قابل للاستنساخ
نفس المدخل، نفس المخرج. نتائج حتمية لاختبار موثوق.
سريع
معالجة آلاف السجلات في الدقيقة. لا يتطلب GPU.
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/presidio/image | POST | Redact PII from images |
| /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
Limitations / Important note
- Rate limits and endpoint availability depend on your plan; build in retry/backoff handling.
- Detection results are probabilistic; validate before automated downstream use. This is not legal advice.