v1.0 โ€” Production Ready

Detect & redact PII
from any document.

A REST API that combines regex pattern-matching with Claude AI to find and remove personal data from PDFs and text files. Pay-as-you-go pricing. 10 free requests on signup.

10 free requests ยท No credit card ยท Swagger & ReDoc included
terminal
# Detect PII (free)
$ curl -X POST api.mishalabs.com/api/v1/documents/detect \
-H "X-API-Key: da_live_your_key" \
-F "file=@contract.pdf"
# Response
{
"success": true,
"file_type": "pdf",
"page_count": 5,
"text_length": 12840,
"pii_found": {
"names": ["John Smith", "Jane Doe"],
"emails": ["john@example.com"],
"phones": ["+1-555-123-4567"],
"total_count": 4
},
"pii_count": 4
}โ–Š

Before

Dear John Smith,

Your account (john@example.com) has been verified. Please confirm your phone +1-555-123-4567 and billing address at 742 Evergreen Terrace, Springfield.

After

Dear [REDACTED],

Your account ([REDACTED]) has been verified. Please confirm your phone [REDACTED] and billing address at [REDACTED].

Detection

12+ PII entity types

Regex catches structured data instantly. Claude AI handles names, addresses, and custom patterns.

PERSON_NAME EMAIL PHONE_US PHONE_TR SSN TC_KIMLIK CREDIT_CARD IBAN ADDRESS IP_ADDRESS DATE_OF_BIRTH CUSTOM
.*

Regex Engine

Emails, phones, SSN, TC Kimlik, cards, IBAN, IPs, dates

AI

Claude AI

Names, addresses, custom entities โ€” unstructured text

Features

Built for developers

โšก

Hybrid Detection

Regex for structured patterns (instant), Claude AI for names and addresses. Best of both.

๐Ÿ”

Free Detection Preview

/detect endpoint is free. See what PII exists before paying for redaction.

๐ŸŽ›๏ธ

Granular Control

Toggle each entity type per request. Enable AI or regex-only. Define custom patterns.

๐Ÿ–ค

Two Redaction Modes

Text replacement ([REDACTED]) or black box overlay. Irrecoverable when needed.

๐Ÿ‡น๐Ÿ‡ท

Turkey-Optimized

TC Kimlik validation, Turkish phone formats, Paddle payments, multi-currency support. KVKK-ready.

๐Ÿณ

Docker Ready

One command deploy with Docker Compose. PostgreSQL, Nginx, health checks. Non-root container.

API Reference

RESTful by design

Full Swagger UI at /docs and ReDoc at /redoc

endpoints โ€” /api/v1
POST /documents/anonymize
POST /documents/detect
GET /documents/{id}/download
POST /auth/register
POST /auth/login
POST /api-keys
GET /payments/packages
GET /usage/stats

Security

Privacy by design

๐Ÿ”

JWT + API Keys

Dual auth, hashed storage

๐Ÿ—‘๏ธ

24h Auto-Delete

Files expire automatically

๐Ÿ›ก๏ธ

Non-Root Container

Minimal privilege Docker

โšก

Rate Limiting

60/min, 1000/day default

Pricing

Pay-as-you-go pricing

No subscriptions. Buy request packs, use them when you need. Volume discounts up to 60%.

STARTER

$9

100 requests ยท $0.09/ea

Get Started

BUSINESS

$79

2,000 requests ยท $0.04/ea

Get Started

ENTERPRISE

$199

10,000 requests ยท $0.02/ea

Get Started
๐Ÿ”’ Secure payment via Paddle ยท 10 free requests on signup ยท Detection always free

Built with

FastAPI Claude AI PostgreSQL PyMuPDF Docker SQLAlchemy JWT Nginx
$ curl api.mishalabs.com/api/v1/auth/register

Start anonymizing in minutes

10 free requests. No credit card. Full API documentation included.

Get Free API Key