{"uid":"cap_Cl6kneJl4P1yNa0cFZJIK","slug":"bitbooth-pii-redact-e556bc04","name":"BitBooth PII Redact","description":"BitBooth PII Redact: pay 0.002 USDC, strip emails, phones, SSNs, credit cards, IPv4 addresses, and hex-looking secrets from a text blob before passing it to an LLM. Compliance primitive for agents in regulated industries (health, finance, legal). Pure regex — no LLM inference, deterministic output.","url":"https://app.heinrichstech.com/v1/cdp/pii-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":{"type":"object","required":["text"],"properties":{"text":{"type":"string"},"patterns":{"type":"array","items":{"enum":["email","phone","ssn","creditCard","ipv4","hexSecret"],"type":"string"}},"replacement":{"type":"string"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json"],"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.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_ZUr0Ci2hexfRG85D2Lmtr","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.008","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Strips emails, phone numbers, SSNs, credit card numbers, IPv4 addresses, and hex secrets from a text blob before it is sent to an LLM, using deterministic regex-based redaction.","exampleAgentPrompt":"Before sending this patient intake note to the LLM, run it through PII redaction to strip out any emails, phone numbers, SSNs, credit card numbers, IP addresses, and hex-looking secrets — I need it sanitized for compliance.","exampleUseCases":[{"title":"HIPAA-safe LLM prompt preprocessing","prompt":"I have this patient summary that a user just submitted — can you redact all emails, phone numbers, SSNs, and any other PII from it before we forward it to the AI for analysis? We need to stay HIPAA-compliant."},{"title":"Financial data anonymization pipeline","prompt":"Strip out any credit card numbers, SSNs, and account-related hex strings from this loan application text before it hits our language model — we can't let raw PII reach the model."},{"title":"Developer log sanitization before AI debugging","prompt":"I want to paste this server log into the AI debugger but it has some IP addresses and what look like hex API keys in it — can you clean all of that out first so nothing sensitive leaks through?"}],"resultDescription":"A sanitized version of the input text with all detected PII tokens replaced by redaction placeholders (e.g. [EMAIL], [PHONE], [SSN], [CREDIT_CARD], [IPV4], [SECRET]). Output is deterministic and regex-driven — no LLM inference involved.","failureModes":["Input text too large — payload size limits may cause rejection","Novel or obfuscated PII formats not matching regex patterns will pass through unredacted","Non-standard phone number formats or international numbers may not be caught","Payment of 0.002 USDC required — insufficient balance or failed x402 payment causes request rejection","Empty or missing text body returns an error"],"whenToPreferThis":"Choose this endpoint when you need fast, deterministic, regex-based PII removal before feeding text to an LLM, especially in regulated industries (health, finance, legal) where compliance is mandatory. Prefer it over LLM-based redaction when you need guaranteed determinism, low latency, and no inference cost. Pairs naturally with the BitBooth prompt-injection-scan endpoint as a two-step sanitize-before-model pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:41:59.352Z","isFirstParty":false}