{"uid":"cap_PB9kyz9FUbHIyPNm9pC2b","slug":"delx-card-mask-118d4dcf","name":"Delx Card Mask","description":"Mask a digit string keeping last4. Call when you display agent-held card-shaped numbers safely. Returns masked and last4 for $0.001 USDC via x402 on Base. Masking only—does not store PANs. No network, no keys, no retention. Results are advisory; the caller owns budgets, auth, and production controls.","url":"https://api.delx.ai/api/v1/x402/card-mask","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"number":{"type":"string","description":"Input field: number."}}},"responseSchema":{"type":"json","example":{"last4":"1111","masked":"************1111","schema":"delx/util-card-mask/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_ttsjXpS8CFjsA8ETNlR60","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 digit string (e.g. a card number) keeping only the last 4 digits visible, returning both the masked string and last4.","exampleAgentPrompt":"Mask this card number so only the last 4 digits are visible: 4111111111111234.","exampleUseCases":[{"title":"Safe card display in agent UI","prompt":"I need to show the user's saved card on screen — mask the number 5500005555555559 so only the last 4 digits are visible."},{"title":"Receipt generation with redacted PAN","prompt":"Generate a payment receipt and mask the card number 4000056655665556 before including it, so only the last four digits show."},{"title":"Agent log sanitization","prompt":"Before logging this transaction record, mask the card number 378282246310005 so we're not storing the full PAN in our logs."}],"resultDescription":"Returns a masked card number string (e.g. '************1234') and the last4 digits as a separate field, with no data retained by the service.","failureModes":["Non-numeric or too-short input string returns an error or unexpected masking","Missing 'number' field in request body causes a 400 bad request","Network timeout or service unavailability returns a 5xx error","Payment failure via x402 prevents the call from completing"],"whenToPreferThis":"Choose this endpoint when you need a stateless, zero-retention way to mask a card-shaped digit string for safe display or logging, without involving any card network, vault, or tokenization service. Ideal for agent workflows that handle card numbers ephemerally and need a formatted masked output quickly and cheaply.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:57:24.340Z","isFirstParty":false}