{"uid":"cap_EfruX99L0xHUet_w6Vlw-","slug":"delx-mask-sensitive-strings-b6d4a5f4","name":"Delx Mask Sensitive Strings","description":"Mask sensitive middle characters. Use before logging secrets, account numbers, or tokens that must stay partially hidden. Returns a masked string suitable for audit trails—never stores the original beyond the request. $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/mask-string","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":"he*************ld","schema":"delx/mask-string/v1","source_len":17}},"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_Op7vzLDNXcJ_6p7k1xH_Q","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":"Masks the middle characters of a sensitive string (e.g. tokens, account numbers, secrets) returning a partially-hidden version safe for logging and audit trails.","exampleAgentPrompt":"Before you log that API token, mask the sensitive middle characters so it's safe for the audit trail — the token is sk-abc123xyz789fullsecretvalue.","exampleUseCases":[{"title":"Safe logging of API secrets","prompt":"I need to log this API key without exposing it fully — can you mask the middle characters of 'sk-prod-abc123def456ghi789' so it's safe to write to our audit log?"},{"title":"Redact account numbers in support tickets","prompt":"Before we store this support ticket, mask the customer's account number '4111111111111234' so only the first and last few digits show — it needs to be safe for our records."},{"title":"Sanitize bearer tokens before debugging output","prompt":"Mask the sensitive middle part of this bearer token 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.fullpayload.signature' before we include it in the debug trace output."}],"resultDescription":"A masked string where the middle characters are replaced with masking characters (e.g. asterisks), leaving a prefix and suffix visible. The result is safe for inclusion in logs, audit trails, and display without exposing the full sensitive value. The original string is never retained beyond the request.","failureModes":["String exceeds 100,000 character limit — request rejected with validation error (not billed)","Empty or missing text field — structured validation error returned (not billed)","Payment not provided or insufficient — x402 payment required response","Network timeout on the x402 payment flow"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, stateless, first-party masking of sensitive strings for logging or audit purposes without storing the original. Prefer it over client-side masking when you want a consistent, auditable masking format across agents; prefer it over general text-redaction tools when you specifically need middle-character masking rather than full removal or regex-based scrubbing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:36.042Z","isFirstParty":false}