Zum Inhalt springen
GET /v1/detect

Detect PII in text

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/redact-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/redact-api/v1/detect" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/redact-api/v1/detect", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/redact-api/v1/detect");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/redact-api/v1/detect",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "total": 2,
        "counts": {
            "email": 1,
            "phone": 1
        },
        "matches": [
            {
                "end": 28,
                "type": "email",
                "start": 8,
                "value": "[email protected]"
            },
            {
                "end": 54,
                "type": "phone",
                "start": 37,
                "value": "+1 (555) 123-4567"
            }
        ]
    },
    "meta": {
        "timestamp": "2026-06-03T09:25:09.330Z",
        "request_id": "9e35543d-206a-46ca-9437-e393f806c55f"
    },
    "status": "ok",
    "message": "Detect PII in text",
    "success": true
}