{"uid":"cap_GoqS7EHeULCJMIEbIYADj","slug":"x402-ai-tools-pii-detection-redaction-c210eeeb","name":"x402 AI Tools – PII Detection & Redaction","description":"Finds personally identifiable information (names, addresses, emails, phone numbers, credit card and bank numbers, SSNs, passwords, IP addresses and more) in English or Spanish text with Amazon Comprehend. Returns each entity's type, offsets and score, and the text with each one replaced by [TYPE].","url":"https://ai.kagurazaka.dev/v1/pii?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"the text, up to 5000 bytes of UTF-8"},"language":{"type":"string","description":"en or es; detected when omitted"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.008","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.008/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jRFJsnEYDMDzX0ZKn1fJQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.008","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Detects personally identifiable information (names, addresses, emails, phone numbers, SSNs, credit cards, passwords, IPs, etc.) in English or Spanish text using Amazon Comprehend, returning entity types, offsets, confidence scores, and a redacted version of the text.","exampleAgentPrompt":"Scan this support ticket for any PII — names, email addresses, phone numbers, credit card numbers, or SSNs — and give me a redacted version with each one replaced: 'Hi, I'm John Smith, my email is john@example.com and my card number is 4111-1111-1111-1111, call me at 555-234-5678.'","exampleUseCases":[{"title":"Redact PII from customer support logs","prompt":"I need to strip all personal information out of this customer email before we store it in our database — names, phone numbers, email addresses, anything sensitive. Here's the text: 'Please help, I'm Maria Gonzalez, reachable at maria.g@hotmail.com or 212-555-9876, and my SSN is 123-45-6789.'"},{"title":"GDPR compliance scan before publishing","prompt":"Before we publish this user-generated content, check it for any PII like real names, home addresses, or credit card numbers and tell me exactly where they appear and how confident you are: 'Meet me at 42 Maple Street, Boston — contact Dave Miller at dave.miller@company.com.'"},{"title":"Detect PII in Spanish language text","prompt":"Can you scan this Spanish-language form submission for personally identifiable information — things like names, phone numbers, or ID numbers? The text is: 'Me llamo Carlos Ruiz, mi número de teléfono es 600-123-456 y mi dirección es Calle Mayor 10, Madrid.' Use Spanish as the language."}],"resultDescription":"Returns a list of detected PII entities, each with its type (e.g. NAME, EMAIL, PHONE, SSN, CREDIT_DEBIT_NUMBER, PASSWORD, IP_ADDRESS, ADDRESS), start and end character offsets within the input text, and a confidence score. Also returns a redacted copy of the text with each PII span replaced by [TYPE].","failureModes":["Text exceeds 5000 bytes — request rejected or truncated","Unsupported language specified — only 'en' and 'es' are valid","Empty or whitespace-only text — returns empty entity list","Network or Amazon Comprehend service outage — 5xx error","Payment failure via x402 — 402 response before processing","Ambiguous content where PII confidence scores are low — entities may be missed or misclassified"],"whenToPreferThis":"Choose this endpoint when you need both PII detection (with entity types, positions, and confidence scores) and automatic redaction of sensitive information in a single call, especially for English or Spanish text. It is backed by Amazon Comprehend's trained PII models, making it more accurate than regex-based alternatives. Prefer it over general NER endpoints when privacy compliance (GDPR, HIPAA, CCPA) is the primary concern.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T12:32:37.013Z","isFirstParty":false,"canonicalSlug":"x402-ai-tools-pii-detection-redaction-c210eeeb"}