{"uid":"cap_7UqsEs36CLrkHIMi2c86R","slug":"x402-pii-scrub-deterministic-text-de-identification-3c9a57e3","name":"x402 PII Scrub – Deterministic Text De-identification","description":"PII pre-flight for agent pipelines: deterministic de-identification of free text BEFORE it reaches a third-party LLM or API. No account, no API key, no subscription — pay per call. Strips names, emails, phones, SSNs, credit cards (Luhn-validated), IPs, URLs, street addresses, account IDs; dates become tokens plus a derived interval timeline (days-between, days-ago) so deadline math survives redaction. Returns scrubbed text + token map for local re-identification. Nothing stored; no LLM ever touc","url":"https://x402.getautomatedrcm.com/pii-scrub","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Text to de-identify before sending to an LLM or third-party API (2 KB max). Nothing is stored. Not for real healthcare PHI."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_je0JrhHJw1fgK0WfEo5kl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Strips PII (names, emails, phones, SSNs, credit cards, IPs, URLs, addresses, account IDs, dates) from free text and returns scrubbed text plus a token map for local re-identification, with no storage or LLM involvement.","exampleAgentPrompt":"Before you send this support ticket text to the summarization API, scrub all the PII out of it — strip names, emails, phone numbers, SSNs, credit cards, IPs, and addresses, but make sure any dates are replaced with tokens that still let me do deadline math afterward.","exampleUseCases":[{"title":"Pre-flight scrub for LLM pipeline","prompt":"I need to send this intake form text to an external LLM for summarization, but it has patient names, phone numbers, and dates in it — can you de-identify it first and give me back the token map so I can re-identify the output afterward?"},{"title":"Credit card redaction in customer messages","prompt":"A customer just submitted a support chat transcript and accidentally included their credit card number and email address — can you scrub the PII from this text before we log it or pass it to any third-party service?"},{"title":"Anonymize claim notes before API submission","prompt":"I have these free-text claim notes with the patient's name, SSN, and address in them — strip all the personally identifiable info and replace the dates with interval tokens so the deadline logic still works, then give me the cleaned text and the token map."}],"resultDescription":"Returns a JSON object containing the scrubbed text (with PII replaced by placeholder tokens), a token map (mapping each token back to the original value for local re-identification), and date-derived interval metadata (days-between and days-ago values) so temporal reasoning survives redaction. Nothing is stored server-side.","failureModes":["Text exceeds 2 KB limit — request rejected","Malformed JSON or missing 'text' field — 400 error","Payment not included or insufficient USDC — 402 Payment Required","Text contains real healthcare PHI — endpoint is not validated for actual PHI compliance (demo/test only)","Network timeout on caller side — retry is safe since endpoint is stateless and idempotent"],"whenToPreferThis":"Choose this endpoint when you need a fast, pay-per-call, no-account-required PII scrubber that deterministically removes sensitive fields (names, emails, phones, SSNs, Luhn-validated credit cards, IPs, URLs, addresses, account IDs) from free text BEFORE it reaches any LLM or external API, and when you need date tokens that preserve interval math. Prefer it over LLM-based redaction when you need deterministic, auditable behavior with no data retention. Not for actual healthcare PHI compliance.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:38:20.496Z","isFirstParty":false}