{"uid":"cap_Geae8_Td-Im2fBFuKx9B7","slug":"delx-redact-emails-in-text-6458a281","name":"Delx Redact Emails in Text","description":"Redact emails in text. Call before publishing logs, support dumps, or RAG snippets that may contain addresses. Returns text with email-like spans replaced by a safe placeholder. $0.001 USDC per successful call via x402 on Base—deterministic first-party JSON, no API key, no subscription, and nothing is billed on structured validation errors.","url":"https://api.delx.ai/api/v1/x402/redact-emails","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":100000,"description":"Primary text input (max 100k chars). Processed first-party; not retained as a dataset."}}},"responseSchema":{"type":"json","example":{"text":"hello agent world","schema":"delx/redact-emails/v1","redacted_count":0}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Lo8HP3RPV-xngNw9FFO9g","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Replaces email address patterns in a text string with a safe placeholder, returning the sanitized text.","exampleAgentPrompt":"Before I publish these support logs, can you redact any email addresses in this text: 'User john.doe@example.com contacted support@company.com on Tuesday asking about their order'?","exampleUseCases":[{"title":"Sanitize support logs before publishing","prompt":"I'm about to publish these raw support chat logs to our documentation site — can you scrub out any email addresses first? Here's the text: 'Customer alice@widgets.com wrote to help@myapp.io complaining about billing on March 3rd.'"},{"title":"Clean RAG snippets before indexing","prompt":"Before I push this document chunk into the vector store, redact any email addresses from it so we don't leak PII into the retrieval index. The text is: 'Contact our team lead sarah.jones@corp.net or fallback to it-admin@corp.net for access requests.'"},{"title":"Anonymize error traces for sharing","prompt":"I want to share this error trace with a third-party debugger, but it has user emails in it — can you replace all the email addresses with placeholders? The trace reads: 'Session initiated by bob@example.org, forwarded to relay@internal.co.'"}],"resultDescription":"Returns a JSON object containing the processed text with all email-like spans replaced by a safe placeholder string. The structure of the text is otherwise preserved. No data is retained by the service after the response.","failureModes":["Text exceeds 100,000 character limit — returns a structured validation error (not billed)","Missing or null 'text' field in request body — returns validation error","Payment not provided or insufficient — returns 402 Payment Required","Network timeout or service unavailability — returns 5xx error"],"whenToPreferThis":"Use this endpoint when you need a deterministic, first-party, no-subscription micro-service to redact email addresses from text before publishing logs, support dumps, RAG document chunks, or any content where PII leakage is a concern. Prefer it over regex-only client-side approaches when you want an auditable external call, and over heavyweight NLP-based PII services when you only need email-pattern redaction at low cost ($0.001 USDC per call via x402 on Base).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:36.041Z","isFirstParty":false}