{"uid":"cap_VdXmVW6z-Yh1541eVp3qQ","slug":"pii-redactor-api-b9b87090","name":"PII Redactor API","description":"Detect and redact PII / sensitive data from text.","url":"https://pii-redactor.pdfextractapi.workers.dev/redact","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["text"],"properties":{"text":{"type":"string","description":"The text to redact PII from, max 50,000 characters."},"include_values":{"type":"boolean","description":"If true, include the original raw values in 'entities'. Default false."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4FKv3Q6gB6TtVnxZh14IG","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Detects and redacts personally identifiable information (PII) and sensitive data from text input.","exampleAgentPrompt":"Can you redact all PII from this text before I store it: 'John Smith called from 555-123-4567 and his email is john.smith@example.com, SSN 123-45-6789'?","exampleUseCases":[{"title":"GDPR-compliant log sanitization","prompt":"Before I ship these server logs to our analytics team, scrub out any personal data like names, emails, phone numbers, and IP addresses from this text: 'User Jane Doe (jane@company.com, IP 192.168.1.1) submitted a request at 3pm.'"},{"title":"Support ticket anonymization","prompt":"I need to anonymize this customer support ticket before passing it to our ML training pipeline — remove any names, phone numbers, addresses, or other PII: 'Hi, I'm Bob Johnson at 742 Evergreen Terrace, call me at 800-555-0199.'"},{"title":"Legal document redaction for sharing","prompt":"Can you redact all sensitive personal details from this legal excerpt so I can share it with external reviewers? The text is: 'The plaintiff, Maria Gonzalez (DOB 04/12/1985, SSN 987-65-4321), resides at 88 Oak Lane, Springfield.'"}],"resultDescription":"Returns the input text with all detected PII and sensitive data replaced by redacted placeholders or masked tokens, preserving the original structure while removing personal identifiers such as names, emails, phone numbers, SSNs, addresses, and credit card numbers.","failureModes":["Text exceeds 50,000 character limit — request rejected","Missing required 'text' field in body — validation error","Malformed JSON body — parse error","Empty string input — may return unchanged or empty response","Payment not included or insufficient — x402 payment required error"],"whenToPreferThis":"Choose this endpoint when you need a simple, per-call PII redaction service without setting up your own NLP pipeline. Ideal for lightweight compliance workflows, pre-processing text before storage or ML training, or anonymizing user-generated content on the fly. Best suited for text up to 50,000 characters; for bulk document processing consider batching calls.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:31:18.275Z","isFirstParty":false}