{"uid":"cap_UZUutNj8131ENJwlO4PBk","slug":"agent402-tools-pii-redaction-b081309c","name":"agent402.tools PII Redaction","description":"Mask emails, phone numbers, credit-card-like numbers, IPs, and SSNs in text. Returns the redacted text and counts by type.","url":"https://agent402.tools/api/redact","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string"}}},"responseSchema":{"type":"json","example":{"counts":{"email":1,"phone":1},"result":"reach me at [EMAIL] or [PHONE]"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lyijC_swF0V7IJh_--OD2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Redacts sensitive PII (emails, phone numbers, credit card numbers, IPs, SSNs) from text and returns the sanitized text with counts by type","exampleAgentPrompt":"Can you redact all the sensitive info from this text — emails, phone numbers, SSNs, credit card numbers, and IPs — and tell me how many of each type were found: 'Contact John at john@example.com or 555-123-4567, his SSN is 123-45-6789 and card is 4111-1111-1111-1111.'","exampleUseCases":null,"resultDescription":"Returns the redacted version of the input text with sensitive values replaced by masked placeholders, along with a breakdown of counts for each PII type detected (email, phone, credit card, IP, SSN).","failureModes":["Missing or empty 'text' field returns an error","Text too large may be rejected or truncated","Payment failure (x402) if USDC is not provided","No PII found returns original text with zero counts"],"whenToPreferThis":"Use this endpoint when you need to sanitize free-form text of multiple PII types in a single call and want a count summary by type — ideal for pre-processing user submissions, logs, or documents before storage or sharing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:02.943Z","isFirstParty":false}