{"uid":"cap_-HnY770m0fGwW8nnaCwtQ","slug":"apiacre-com-document-redact-044b4fcb","name":"apiacre.com Document Redact","description":"Deterministically detect and redact PII and personal data in supplied text with overlap-safe matching for emails, phone numbers, validated IPv4 and IPv6 addresses, Luhn-valid payment cards, valid-checksum IBANs, and structurally valid US Social Security numbers.","url":"https://apiacre.com/v1/document/redact","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string"},"types":{"type":"array","items":{"enum":["email","phone","ipv4","ipv6","credit_card","ssn","iban"],"type":"string"}}}},"responseSchema":{"type":"json","example":{"data":{"text":"Contact [REDACTED_EMAIL] about invoice card [REDACTED_CREDIT_CARD].","total":2,"counts":{"ipv4":0,"ipv6":0,"email":1,"phone":0,"credit_card":1},"detector":{"version":"apiacre-pii-redaction/2","overlapSafe":true,"deterministic":true,"validatedTypes":["credit_card","iban","ipv4","ipv6","ssn"],"networkRequestsMade":0},"findings":[{"end":27,"type":"email","start":8,"characters":19,"placeholder":"[REDACTED_EMAIL]"}],"inputSha256":"04b4432fceb85a844f4a83b4ddabd14dda672c9c94b8c54c020ff06de182d2f6","limitations":["Deterministic patterns do not identify names, street addresses, or every loca...","Review redacted output before treating it as safe for a particular privacy or..."],"outputSha256":"7e30afcfe691fb4e6527ee782aaa6cccd68b726687540cb2d6de557cfe921c13","selectedTypes":["email","phone","ipv4","ipv6","credit_card","ssn","iban"],"findingsReturned":2,"findingsTruncated":false,"redactedCharacters":38},"meta":{"cached":false,"sources":[],"warnings":[],"duration_ms":42,"next_actions":[]},"service":"document.redact","version":"1","request_id":"018f1f54-7f38-7ba2-8dc3-5f90272d9f1a"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CFzGgU-izt7a3syy1ClT7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Detects and redacts common personal identifiers (PII) from supplied text, returning a sanitized version.","exampleAgentPrompt":"Scan this text and redact any personal identifiers like names, emails, phone numbers, or SSNs — give me back the cleaned version with the sensitive parts masked out.","exampleUseCases":[{"title":"Anonymize customer support tickets","prompt":"Before we archive these support tickets, redact any personal info — names, emails, phone numbers — so the data is safe to share with our analytics team."},{"title":"Sanitize logs before sharing with vendors","prompt":"Can you scrub this application log text of any PII like email addresses or IP addresses before I send it to our third-party vendor for debugging?"},{"title":"GDPR-compliant data export preparation","prompt":"I need to redact all personal identifiers from this user-submitted text — names, national IDs, addresses — so we can export it without violating GDPR."}],"resultDescription":"Returns the input text with personal identifiers replaced or masked, along with metadata about the detected PII spans (types and positions). The sanitized text is safe for storage, sharing, or further processing.","failureModes":["Empty or missing text body returns a validation error","Extremely long documents may exceed payload size limits","Uncommon or domain-specific identifiers may not be detected","Non-Latin scripts or languages may have reduced detection accuracy","Rate limiting or payment failure returns a 402 or 429 error"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-call PII redaction step in an automated pipeline — especially when you don't want to run a full NLP model locally. Ideal for sanitizing text before storage, logging, or sharing with third parties. Prefer this over general-purpose LLM prompting for redaction when you need consistent, deterministic masking rather than generative rewriting.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:46:14.459Z","isFirstParty":false}