{"uid":"cap_yjwlwx6GUYSfwT1GLSMfp","slug":"pii-redaction-api-271cb4ad","name":"PII Redaction API","description":"Pay-per-call utilities for AI agents over x402, USDC on Base.","url":"https://agents.crowdspark.me/v1/text/pii-redact?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mask":{"enum":["label","hash","star"],"type":"string","description":"label (default) [EMAIL], hash [EMAIL:ab12cd34], or star"},"text":{"type":"string","description":"Text to redact, max 100,000 characters"}}},"responseSchema":{"type":"json","example":{"mask":"label","counts":{"email":1,"phone":1,"credit_card":1},"findings":[{"end":20,"type":"email","start":8,"length":12}],"redacted":"Contact [EMAIL] or [PHONE]. Card [CREDIT_CARD].","total_found":3}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_A02LLh3vlH2C_1TIPTz8t","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Scrubs personally identifiable information (emails, phones, SSNs, credit cards, IBANs, IPs, MACs, API keys, JWTs, private keys, wallet addresses) from text using label, hash, or star masking","exampleAgentPrompt":"Before sending this user message to the AI model, scrub it for any PII — emails, phone numbers, SSNs, credit cards, API keys, wallet addresses — and replace each one with its label like [EMAIL] or [PHONE]: 'Hi, my name is John, reach me at john@example.com or 555-123-4567. My SSN is 123-45-6789.'","exampleUseCases":[{"title":"Sanitize support tickets before LLM processing","prompt":"Before passing these customer support messages to our AI summarizer, scrub out any emails, phone numbers, credit card numbers, or SSNs and replace them with labels like [EMAIL] — here's the ticket: 'Please charge my card 4111111111111111 and email confirmation to sarah@company.com, my SSN is 456-78-9012.'"},{"title":"Remove leaked secrets from developer logs","prompt":"I've got a chunk of application log text that might contain API keys, JWTs, or private keys — can you redact them using hash masking so I can safely store the logs? Here's the text: 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.abc123 and API_KEY=sk-abc123xyz'"},{"title":"Anonymize user data for analytics pipeline","prompt":"We need to anonymize this batch of user-submitted feedback before it goes into our analytics dashboard — replace any personal info like emails, IPs, MAC addresses, or phone numbers with stars, then tell me how many of each type you found. Here's the text: 'User 192.168.1.1 (mac: AA:BB:CC:DD:EE:FF) wrote: call me at 800-555-0199 or email bob@domain.org.'"}],"resultDescription":"A JSON object containing: 'redacted' (the sanitized text with PII replaced by mask tokens), 'findings' (array of objects with type, start, end, and length for each detected item), 'counts' (object mapping each PII type to the number of occurrences found), 'total_found' (integer total count), and 'mask' (the masking mode used).","failureModes":["Text exceeds 100,000 character limit — returns error","Invalid mask value outside label/hash/star enum — returns validation error","Malformed JSON body — returns 400 bad request","Missing text field — returns validation error","Rate limit exceeded without payment header — returns 402 or 429","Network timeout on very large payloads"],"whenToPreferThis":"Choose this endpoint when you need fast, deterministic PII scrubbing before text reaches an LLM, a log store, or an analytics pipeline. It covers a broad set of sensitive entity types (emails, phones, SSNs, credit cards, IBANs, IPs, MACs, API keys, JWTs, private keys, and crypto wallet addresses) in a single call. It is especially useful for agents processing untrusted user input, sanitizing support tickets, or ensuring compliance before data storage. Prefer it over regex-based solutions when you need structured findings metadata (offsets, counts by type) in addition to the redacted text.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:40:20.237Z","isFirstParty":false,"canonicalSlug":"pii-redaction-api-271cb4ad"}