# Delx Commerce — Mask Middle Text Utility

> Delx Commerce — Mask Middle Text Utility is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Masks the middle characters of a string, preserving the first and last few characters for safe display of sensitive values

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/mask-middle?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-mask-middle-text-utility-ded1c9de
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dHsvpn2nBU4wzciw1iCUQ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability delx-commerce-mask-middle-text-utility-ded1c9de -d '<json body>'
```

Example prompt: Mask the middle of this API key so I can show it safely in the UI: sk_live_abc123456789xyz23456

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Input field: text."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "sk_li**********23456",
  "length": 20,
  "schema": "delx/util-mask-middle/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-mask-middle-text-utility-ded1c9de/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
