Developer API

Add PII protection to your AI pipeline in minutes

One API key. Instant PII detection and anonymization before your data reaches any LLM. EU-hosted, self-service, GDPR-compliant.

Simple REST API

Integrate PII detection into any AI pipeline with a single HTTP call. Analyze text, anonymize it, or do both in one request. Generate API keys from the admin panel — no sales call required.

curl -X POST https://api.leyr.ai/api/v1/public/analyze \
  -H "Authorization: Bearer lyr_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"text": "Contact John Smith at john@example.com"}'

// Response

{
  "original": "Contact John Smith at john@example.com",
  "anonymized": "Contact [PERSON_1] at [EMAIL_1]",
  "piiDetected": true,
  "findings": [
    { "type": "PERSON", "value": "John Smith", "placeholder": "PERSON_1" },
    { "type": "EMAIL", "value": "john@example.com", "placeholder": "EMAIL_1" }
  ]
}

Self-Service API Keys

Generate API keys from the admin panel. No sales process. Each key can have its own PII detection policy.

Per-Key Policy Config

Stricter detection in production, relaxed in development. Configure which PII categories each key detects independently.

EU-Hosted Infrastructure

All analysis runs on EU servers. Your data never leaves the EU — making your product GDPR-compliant by design.

Available endpoints

POST

/api/v1/public/analyze

Detect PII in text and return findings with placeholders

POST

/api/v1/public/analyze-file

Analyze uploaded files (PDF, DOCX, images) for PII before AI processing

Get your API key in 2 minutes

Create a free account, generate a key, make your first request. No credit card required.

Try Free