{"uid":"cap_WvaDnJLOtgpfKuH6jBsCj","slug":"sentinel402-pii-secret-batch-scanner-628ce21c","name":"Sentinel402 PII & Secret Batch Scanner","description":"Paid tools for AI agents over x402: a PII and secret guardrail that scans outbound payloads, live citable data (crypto, weather, GitHub, sports, FX), and an RCP/1 retrieval server backed by that live data.","url":"https://pii-guardrail.chronokey.workers.dev/v1/scan/batch?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mode":{"enum":["detect","redact","block"],"type":"string","description":"default detect; redact adds per-item sanitized copies"},"items":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","description":"Text to scan"},"payload":{"description":"Any JSON to scan instead of text"}}},"maxItems":20,"minItems":1,"description":"Up to 20 items; each {text: string} or {payload: <any JSON>}. Combined size <= 32000 chars."},"minSeverity":{"enum":["low","medium","high","critical"],"type":"string"},"blockThreshold":{"type":"number","description":"risk score that trips block mode"}}},"responseSchema":{"type":"json","example":{"ok":true,"meta":{"batch":true,"engineVersion":"1.1.0"},"x402":{"network":"eip155:8453","settled":true,"facilitator":"https://facilitator.payai.network","transaction":"0xabc123"},"batch":{"mode":"redact","items":3,"flagged":2,"scanned":3,"maxItems":20,"totalChars":118},"results":[{"ok":true,"risk":100,"index":0,"counts":{"low":0,"high":0,"medium":0,"critical":1},"decision":"redact","findings":[{"rule":"CREDIT_CARD","count":1,"label":"Credit / debit card number (PAN)","samples":[{"end":31,"start":12,"preview":"[CREDIT_CARD:************4242]","confidence":0.99,"contextual":false}],"severity":"critical","confidence":0.99}],"sanitized":"Charge card [CREDIT_CARD:************4242] for order 991."},{"ok":true,"risk":60,"index":1,"counts":{"low":0,"high":2,"medium":0,"critical":0},"decision":"redact","findings":[{"rule":"EMAIL","count":1,"label":"Email address","samples":[{"end":30,"start":8,"preview":"[EMAIL:#a1b2c3]","confidence":0.97,"contextual":false}],"severity":"high","confidence":0.97}],"sanitized":"contact [EMAIL:#a1b2c3] / [PHONE_US:#d4e5f6]"},{"ok":true,"risk":0,"index":2,"counts":{"low":0,"high":0,"medium":0,"critical":0},"decision":"allow","findings":[]}],"aggregate":{"risk":100,"counts":{"low":0,"high":2,"medium":0,"critical":1},"decision":"redact"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_l2VMXf8qJp4joaAuLCIDy","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Scans up to 20 text or JSON payloads in a single call for PII and secrets, returning risk scores, findings, and optionally redacted copies — paid via x402.","exampleAgentPrompt":"Scan these 3 outbound messages for PII and redact anything found — use redact mode with medium as the minimum severity: 'Charge card 4111111111114242 for order 991', 'Contact bob@example.com or call 555-123-4567', 'Order received, thank you.'","exampleUseCases":[{"title":"AI agent outbound guardrail","prompt":"Before my agent sends any response to the user, scan the text in redact mode and block anything with a risk score over 80 — I need to make sure no credit card numbers, SSNs, or API keys ever leak out."},{"title":"Compliance audit of support logs","prompt":"I have a batch of 15 customer support chat snippets I need to run through a PII scanner — flag everything at high severity or above and give me sanitized copies I can safely store in our analytics database."},{"title":"Secret detection in JSON payloads","prompt":"My pipeline is generating JSON objects before posting them externally — can you scan this batch of 5 JSON payloads in detect mode to see if any of them accidentally contain secrets, API keys, or personal data?"}],"resultDescription":"Returns a JSON object with per-item results including a 0–100 risk score, a decision (allow/redact/block), a list of findings with rule name, severity, confidence, character positions, and previews of matched spans, plus an optional sanitized version of the text. Also returns an aggregate risk score and counts across the batch, along with x402 payment settlement details.","failureModes":["Batch exceeds 20 items — API rejects with validation error","Combined payload exceeds 32,000 characters — request rejected","Invalid mode enum value — schema validation failure","Payment not settled via x402 — 402 Payment Required returned","Malformed JSON in payload field — parsing error","Empty items array — minItems constraint violation"],"whenToPreferThis":"Choose this endpoint when you need to scan multiple text or JSON items in a single paid call and want per-item risk scores, severity breakdowns, and optional in-place redaction. It is purpose-built for AI agent outbound guardrails where you need to prevent PII or secrets from leaking in generated responses. Prefer it over single-item scanners when processing batches of up to 20 items, and over generic content moderation APIs when you specifically need PII/secret detection with confidence scores and redacted output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T06:41:38.923Z","isFirstParty":false,"canonicalSlug":"sentinel402-pii-secret-batch-scanner-628ce21c"}