Developer API
Add PII protection to your AI pipeline in minutes
One API key. The Leyr API finds personal data in text and swaps it for placeholders before it reaches any LLM. EU-hosted, self-service, GDPR-compliant.
Simple REST API
Add PII detection to any AI pipeline with one HTTP call. Analyse text, anonymise it, or both in one request. Create API keys in the admin dashboard — no sales call needed.
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
Create API keys in the admin dashboard, with no sales process. Each key can have its own PII detection policy.
Per-Key Policy Config
Stricter detection in production, relaxed in development. Choose which PII categories each key detects.
EU-Hosted Infrastructure
Our servers are in Germany, and we use AI models hosted in Europe by Mistral AI and Scaleway, so your data stays in the EU. Our Privacy Policy sets out the full data flow.
Available endpoints
/api/v1/public/analyze
Detect PII in text and return findings with placeholders
/api/v1/public/analyze-file
Analyse uploaded files (PDF, DOCX, images) for PII before AI processing. Off by default — ask us to enable it for your organisation.
Get your API key
Book a 30-minute call. We set up your organisation, issue your first key and walk through the endpoints with you.