{"uid":"cap_MpS0QhNRSDCleTIveVbTi","slug":"24k-labs-pii-redactor-29dfbc30","name":"24K Labs PII Redactor","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/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_MRCD5XYcvvaHBpGnL8sD8","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":"Regex-based redaction of PII (emails, phone numbers, SSNs, credit card numbers, IP addresses) from text, returning sanitized text and per-type redaction counts.","exampleAgentPrompt":"Scrub all PII from this support ticket text — mask any emails, phone numbers, SSNs, credit card numbers, and IP addresses, and tell me how many of each type were found: 'Hi, my name is John, email john@example.com, SSN 123-45-6789, card 4111111111111111, call me at 555-867-5309.'","exampleUseCases":[{"title":"Sanitize support chat transcripts","prompt":"Before we archive this customer support chat log, redact all PII — emails, phone numbers, SSNs, and credit card numbers — and tell me how many of each type were removed: 'Customer called from 212-555-0198, email jane.doe@acme.com, gave card 5500005555555559 for refund.'"},{"title":"Pre-processing logs before third-party analytics","prompt":"I need to clean up these raw application logs before sending them to our analytics vendor — strip out any email addresses, IPs, or phone numbers and return the sanitized version along with a count of what was redacted."},{"title":"GDPR compliance check on user-submitted form data","prompt":"A user just submitted a contact form and I need to store a sanitized version for our audit trail — can you redact any SSNs, credit cards, emails, phone numbers, and IP addresses from this text and show me how many of each were found?"}],"resultDescription":"Returns the original text with all detected PII replaced by redacted placeholders (e.g. [EMAIL], [PHONE], [SSN], [CREDIT_CARD], [IP]), along with a structured count of how many instances of each PII type were masked.","failureModes":["Missing or empty input text returns an error or empty response","Regex-based matching may miss non-standard PII formats (e.g. international phone formats, formatted SSNs with spaces)","False positives: number sequences resembling SSNs or credit cards that are not actually PII may be masked","Very large text bodies may hit payload size limits","Malformed request body returns a 400-level error"],"whenToPreferThis":"Choose this endpoint when you need fast, deterministic, regex-based PII removal across the five standard US PII types (email, phone, SSN, credit card, IP) without requiring an LLM or ML model. Ideal for preprocessing pipelines, compliance workflows, and log sanitization where speed and predictability matter more than handling exotic or international PII formats.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:58:03.165Z","isFirstParty":false}