{"uid":"cap__dzClqAg5Qhjs7m5EoHpX","slug":"preplayer-ai-pii-redaction-411daadf","name":"PrepLayer.ai PII Redaction","description":"Redact PII from text before it is stored or logged. Returns redacted text plus exact byte spans and counts per class: credit_card, iban, email, private_key, evm_address, phone, ipv4, url.","url":"https://api.maximusmediahouse.com/v1/redact?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Source text (1-100000 chars)."},"classes":{"type":"array","items":{"type":"string"},"description":"Optional subset of PII classes to redact."},"placeholder":{"type":"string","default":"[REDACTED:{cls}]","description":"Replacement template; {cls} is substituted."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IqA6A90mwPA_22796bF0V","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Redacts personally identifiable information (PII) from text, returning sanitized text with byte spans and counts per PII class.","exampleAgentPrompt":"Before we log this customer support message, redact all PII — strip emails, phone numbers, credit card numbers, IBANs, private keys, EVM addresses, IPs, and URLs — and use '[REDACTED:{cls}]' as the placeholder so I know what type was removed.","exampleUseCases":[{"title":"Sanitize logs before storage","prompt":"We're about to store these raw API request logs in our database. Can you scrub any PII — emails, IPs, phone numbers, credit card numbers — before they get written? Use [REDACTED:{cls}] so I can see what was removed."},{"title":"Anonymize LLM training data","prompt":"I have this batch of user messages I want to use for fine-tuning, but I need to remove all personal info first. Redact emails, EVM wallet addresses, private keys, IBANs, and phone numbers from this text before I use it."},{"title":"GDPR-safe support ticket archiving","prompt":"Before we archive this support ticket thread, please redact all sensitive fields — credit card numbers, IBANs, email addresses, and phone numbers — so the archived version is GDPR-compliant. Tell me how many of each type were found."}],"resultDescription":"Returns the sanitized text with all matched PII replaced by the placeholder template, along with a list of exact byte-offset spans for each redacted item and per-class counts (e.g. how many credit_card, email, phone matches were found).","failureModes":["Text exceeds 100,000 character limit — returns a 400 error","Invalid PII class name in 'classes' array — may return 400 or silently ignore unknown class","Malformed placeholder template — may produce unexpected output strings","Very ambiguous text may produce false positives or miss obfuscated PII","Empty text input returns empty redacted text with zero counts"],"whenToPreferThis":"Use this endpoint when you need deterministic, rule-based PII removal with exact byte-span provenance — particularly before storing, logging, or forwarding text that may contain credit card numbers, IBANs, emails, private keys, EVM addresses, phone numbers, IPv4s, or URLs. Prefer this over LLM-based redaction when you need reproducible results, audit trails, and per-class counts rather than probabilistic detection.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:37:50.707Z","isFirstParty":false,"canonicalSlug":"preplayer-ai-pii-redaction-411daadf"}