{"uid":"cap_dHsvpn2nBU4wzciw1iCUQ","slug":"delx-commerce-mask-middle-text-utility-ded1c9de","name":"Delx Commerce — Mask Middle Text Utility","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/mask-middle?utm_source=zero.xyz","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_e27G42UK9d9CwBanazl_P","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, preserving the first and last few characters for safe display of sensitive values","exampleAgentPrompt":"Mask the middle of this API key so I can show it safely in the UI: sk_live_abc123456789xyz23456","exampleUseCases":[{"title":"Safe API key display in dashboard","prompt":"I need to show this API key in the user dashboard without exposing the full secret — mask the middle of sk_live_abc123456789xyz23456 so only the start and end are visible."},{"title":"Redact token in audit log","prompt":"Before writing this auth token to the audit log, mask the middle characters so it's not fully exposed: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.abc123."},{"title":"Obfuscate credit card for receipt","prompt":"Mask the middle digits of this card number so I can display it on the receipt safely: 4111111111111234"}],"resultDescription":"Returns a JSON object with the masked text string (middle characters replaced with asterisks), the total length of the original string, and a schema identifier ('delx/util-mask-middle/v1') confirming the operation type.","failureModes":["Empty or missing 'text' field returns an error","Extremely long strings may be truncated or rejected","Non-string input types may cause a 400 bad request","Payment failure via x402 protocol prevents execution","Network timeout on the Base/Solana payment settlement"],"whenToPreferThis":"Use this endpoint when you need a quick, pay-per-call, no-signup utility to safely mask sensitive strings (API keys, tokens, card numbers) for display or logging. Prefer it over building custom masking logic when you need a verifiable, auditable transformation delivered via x402 micropayment — especially useful in agent pipelines where credential sanitization is needed before output is surfaced to users or written to logs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:39.730Z","isFirstParty":false,"canonicalSlug":"delx-commerce-mask-middle-text-utility-ded1c9de"}