Log Redact & Secret Scanner API
Detect and mask leaked API keys, JWTs, and private keys in logs, diffs, and prompts.
Scan logs and prompts for 28 secret types or redact PII with reversible placeholder tokens. Interactive browser playground to scan and redact 28 types of leaked API keys/secrets or mask personal data (emails, phones, IBANs, credit cards, national IDs) before LLM calls.
POST /v1/secret-scanner)
Ready
Switch between Secret Scanner (POST /v1/secret-scanner)
and PII Redactor (POST /v1/pii-redactor) using the presets below.
{
"ok": true,
"data": {
"verdict": "block",
"risk_score": 55,
"redacted_text": "Authorization: Bearer [SECRET_STRIPE_KEY_1]",
"findings": [
{
"type": "STRIPE_KEY",
"severity": "critical",
"start": 22,
"end": 61,
"line": 1,
"replacement": "[SECRET_STRIPE_KEY_1]",
"entropy": 4.88,
"validated": true
}
],
"counts": {
"STRIPE_KEY": 1
},
"total_secrets": 1,
"tokens": {
"[SECRET_STRIPE_KEY_1]": "sk_live_51Nq9abcDEF1234567890ghijklMNOP"
}
},
"meta": {
"request_id": "req_sec_01",
"ms": 1
}
}
This tool runs on the exact same stateless Worker engine as our production APIs. Unlock up to 256 KB payloads with a Polar All-Access key (/pricing):
Detect and mask leaked API keys, JWTs, and private keys in logs, diffs, and prompts.
Mask emails, phones, IBANs, cards, and EU IDs with reversible tokens before LLM calls.