{"uid":"cap_0grYp17nDQwTAeQEs70ME","slug":"delx-commerce-mask-string-49d97d07","name":"Delx Commerce — Mask String","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-string?utm_source=zero.xyz","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_JlCG2U9RNUMIBEHQz8OCw","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 a string by replacing most characters with asterisks, preserving only the first and last characters, for privacy/redaction purposes.","exampleAgentPrompt":"Mask this string for me so it's safe to display — hide everything except the first and last characters: 'helloworld123456'","exampleUseCases":[{"title":"Redact API key before logging","prompt":"Before I log this API key to our system, mask it so only the first and last characters show — the key is 'sk-abc123xyz987qwerty'."},{"title":"Obfuscate email for UI display","prompt":"I need to show a user their email address in our app without revealing the full thing — mask 'janedoe@example.com' so it looks redacted."},{"title":"Anonymize PII in audit trail","prompt":"We're writing a user's phone number to an audit log and need to hide most of it for compliance — can you mask '415-555-1234' before we store it?"}],"resultDescription":"Returns a JSON object containing the masked string (first and last characters preserved, all middle characters replaced with asterisks), the schema identifier 'delx/mask-string/v1', and the source length of the original input string.","failureModes":["Input text exceeds 100,000 character limit — request rejected","Missing or empty 'text' field — likely returns a 400 or validation error","Payment not provided or insufficient USDC — 402 Payment Required response","Network or service unavailability — 5xx error"],"whenToPreferThis":"Choose this endpoint when you need a simple, deterministic, pay-per-call string masking operation with no signup and verifiable delivery. Ideal for agents that need to redact strings on-the-fly at low cost ($0.001 USDC) without integrating a heavier data-masking or PII-detection service. Best for short to medium strings where only basic character-level obfuscation (first/last visible) is needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:57.456Z","isFirstParty":false,"canonicalSlug":"delx-commerce-mask-string-49d97d07"}