{"uid":"cap_PrEEEry-V52XZgVpJAKc1","slug":"delx-mask-middle-01cd13a5","name":"Delx Mask Middle","description":"Mask the middle of a string keeping ends. Call when you redact secrets in logs while keeping identifiable edges. Returns masked text for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.","url":"https://api.delx.ai/api/v1/x402/mask-middle","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Input field: text."}}},"responseSchema":{"type":"json","example":{"text":"sk_li**********23456","length":20,"schema":"delx/util-mask-middle/v1"}},"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_vJ_jCNFWdis8pN9zjdVq6","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 string while preserving both ends, useful for redacting secrets in logs or displays.","exampleAgentPrompt":"Can you mask the middle of this API key so I can safely include it in a log — keep the first and last few characters visible: 'sk-abc123def456ghi789jkl'?","exampleUseCases":[{"title":"Sanitizing secrets in log output","prompt":"I need to redact this database password before it gets written to our application logs — mask the middle but keep the edges so we can still identify which credential it is: 'P@ssw0rd!SuperSecret99'"},{"title":"Displaying partial token to end user","prompt":"Show the user their API token in a masked form so they can confirm which one it is without exposing the full value — here's the token: 'tok_live_xK9mN2qRpL7vW4dY'"},{"title":"Obfuscating credit card number in receipt","prompt":"For this receipt preview, mask the middle digits of the card number so only the first and last four are visible: '4111111111111234'"}],"resultDescription":"Returns a masked version of the input string where the middle characters are replaced with masking characters (e.g. asterisks), with the original leading and trailing characters preserved, as a local JSON response with no data retention.","failureModes":["Empty or missing 'text' field returns an error","Very short strings (1-2 chars) may have no middle to mask, behavior may vary","Network or payment authorization failure returns a 402 Payment Required response","Malformed request body returns a 400 error"],"whenToPreferThis":"Choose this endpoint when you need a simple, cheap, stateless operation to redact the interior of a sensitive string for logging, display, or audit purposes, especially within an agentic pipeline where no external data retention or key management is acceptable. It is ideal for masking API keys, tokens, passwords, or card numbers in log lines or user-facing UIs without building custom string manipulation logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:39.055Z","isFirstParty":false}