{"uid":"cap_bcNQekC-xe92K3OQle882","slug":"24k-labs-pii-redact-70e53b50","name":"24K Labs PII Redact","description":"Regex-based PII redaction: masks emails, phone numbers, SSNs, credit-card numbers, and IP addresses, returning cleaned text plus per-type counts.","url":"https://api.24klabs.ai/api/v1/pii-redact","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string"}}},"responseSchema":{"type":"json","example":{"counts":{"SSN":1,"EMAIL":1,"PHONE":1},"redacted":"Contact John at [EMAIL] or [PHONE]. SSN [SSN]."}},"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_lnkB1kMujzWmsyfCyzLgZ","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 PII from text using regex patterns, masking emails, phone numbers, SSNs, credit card numbers, and IP addresses, and returns the cleaned text with per-type match counts.","exampleAgentPrompt":"Can you redact all PII from this text before I store it — mask any emails, phone numbers, SSNs, credit card numbers, and IP addresses, and tell me how many of each were found: 'Call John at 555-867-5309 or email john@example.com; his SSN is 123-45-6789.'","exampleUseCases":[{"title":"Sanitize support tickets before archiving","prompt":"Before we archive this support ticket, scrub all the PII from the message body — mask any emails, phone numbers, credit card numbers, SSNs, and IP addresses, and let me know how many of each type were found."},{"title":"Anonymize user feedback for analytics","prompt":"I need to anonymize this batch of user feedback text so I can share it with our analytics team — can you mask any emails, phone numbers, and other PII in it and show me the cleaned version?"},{"title":"Scrub logs of sensitive data","prompt":"These server logs might contain user email addresses and IP addresses that we shouldn't keep — can you redact any PII from this log snippet and tell me how many items of each type were masked?"}],"resultDescription":"Returns the input text with all detected PII replaced by masked placeholders (e.g. [EMAIL], [PHONE], [SSN], [CREDIT_CARD], [IP]), along with a count breakdown of how many instances of each PII type were found and redacted.","failureModes":["Regex-based detection may miss non-standard formats (e.g. phone numbers with unusual delimiters)","False positives possible when numeric patterns coincidentally match PII formats","Very long input text may hit payload or timeout limits","Malformed request body returns a 400 error","Missing or invalid x402 payment header may result in 402 Payment Required error"],"whenToPreferThis":"Choose this endpoint when you need fast, lightweight, deterministic PII masking using well-known regex patterns for common US-format PII types (email, phone, SSN, credit card, IP). Ideal for pre-storage sanitization, compliance scrubbing, or anonymizing text before sharing. Prefer this over ML-based NER solutions when speed, cost, and predictability matter more than handling edge-case or non-standard PII formats.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:54:31.266Z","isFirstParty":false}