By ·

REST API + MCP Server

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.

273
Entity types
48
Languages
200
Free tokens/month

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.

EndpointMethodDescription
/api/presidio/analyzePOSTDetect PII entities in text
/api/presidio/anonymizePOSTAnonymize detected entities
/api/presidio/imagePOSTRedact PII from images
/api/presidio/entitiesGETList 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

ISO 27001 Aligned
Germany (EU) Hosted
Bearer Token Auth
REST + MCP

Start Building Today

200 free tokens per month. Full documentation available.

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.

How we measure — our methodology