{"uid":"cap_Mu3qy-87yEtslRCQolOu-","slug":"desanatization-pii-sanitizer-a642f5cf","name":"Desanatization PII Sanitizer","description":"PII sanitization for AI agents","url":"https://desanatization-production.up.railway.app/api/resource?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"text":{"type":"string","description":"Text to sanitize"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["success","clean","redactions"],"properties":{"clean":{"type":"string","description":"Sanitized text"},"success":{"type":"boolean"},"requestId":{"type":"string"},"timestamp":{"type":"string"},"inputChars":{"type":"integer"},"redactions":{"type":"object","properties":{"ssns":{"type":"integer"},"cards":{"type":"integer"},"emails":{"type":"integer"},"phones":{"type":"integer"},"secrets":{"type":"integer"},"urlTokens":{"type":"integer"}},"description":"Counts per redaction class"},"outputChars":{"type":"integer"}}}}}}},"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_AiLUAhaoXHYnTQ5FwpPg1","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":"Removes personally identifiable information (PII) from text, redacting SSNs, credit card numbers, emails, phone numbers, secrets, and URL tokens","exampleAgentPrompt":"Can you sanitize this text before we log it — it might contain emails, phone numbers, SSNs, or credit card numbers: 'Call John at 415-555-0192 or john.doe@email.com, card ending 4111 1111 1111 1111, SSN 123-45-6789'?","exampleUseCases":[{"title":"Scrub user input before LLM processing","prompt":"Before you send this customer message to the AI model, sanitize it to remove any PII — emails, phone numbers, credit cards, or SSNs: 'Hi, I'm Jane Smith, my SSN is 456-78-9012 and my card is 5500 0000 0000 0004, reach me at jane@example.com or 212-555-0199.'"},{"title":"Anonymize support tickets before logging","prompt":"I need to store this support ticket in our database but first strip out any personal info like emails, phone numbers, and SSNs: 'Customer Bob reported an issue. His email is bob@corp.com, phone 888-555-0134, and he referenced his social 321-54-9876.'"},{"title":"Redact secrets from config snippets","prompt":"Can you clean this config snippet to remove any embedded secrets or tokens before I commit it to the repo: 'db_password=S3cr3tP@ss! api_key=sk-abc123xyz token=Bearer eyJhbGciOiJIUzI1NiJ9.payload.sig'?"}],"resultDescription":"Returns a JSON object with a boolean success flag, the sanitized clean text (PII replaced with redaction placeholders), a requestId, timestamp, input and output character counts, and a redactions object with integer counts per category (SSNs, cards, emails, phones, secrets, urlTokens).","failureModes":["Missing 'text' query parameter returns an error response","Empty input string may return success with zero redactions","Malformed request may result in HTTP 4xx","Service unavailability on Railway hosting returns HTTP 5xx","Very long text inputs may hit character limits or timeout"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call PII scrubber that handles multiple redaction classes (SSNs, credit cards, emails, phones, secrets, URL tokens) in a single call with per-category counts, especially for AI agent pipelines that need to sanitize user input before logging, storing, or forwarding to downstream models.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:30:44.416Z","isFirstParty":false,"canonicalSlug":"desanatization-pii-sanitizer-a642f5cf"}