API Integration

RESTful API for developers to integrate PII detection and anonymization into any application or workflow. Full documentation and code examples available.

Quick Start

Simple Integration

Get started with just a few lines of code. Our API accepts JSON requests and returns structured results with entity positions and confidence scores.

  • RESTful JSON API
  • Bearer token authentication
  • Comprehensive error responses
  • Rate limiting with clear headers
// Analyze text for PII
const response = await fetch('https://anonymize.today/api/presidio/analyze', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    text: 'Contact John Smith at john.smith@company.com',
    language: 'en'
  })
});

const results = await response.json();
// Returns detected entities with positions and confidence scores

API Endpoints

POST/api/presidio/analyze

Analyze text to detect PII entities. Returns entity types, positions, and confidence scores.

View documentation →
POST/api/presidio/anonymize

Anonymize detected PII using your chosen method. Returns anonymized text.

View documentation →
POST/api/presidio/batch

Process multiple documents in a single request. Enterprise plans support up to 100 documents.

View documentation →
GET/api/health

Check API status and service health. No authentication required.

Public endpoint

API Features

JWT Authentication

Secure API access with JWT tokens. Generate and manage tokens from your account dashboard.

Rate Limiting

Clear rate limit headers in every response. 30 requests/minute on free tier, higher limits on paid plans.

SDKs & Examples

Code examples in JavaScript, Python, cURL, and more. Copy-paste ready for quick integration.

Start Building Today

Get your API token and start integrating PII protection into your applications.