# Delx Commerce — Mask String

> Delx Commerce — Mask String 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 a string by replacing most characters with asterisks, preserving only the first and last characters, for privacy/redaction purposes.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/mask-string?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-string-49d97d07
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0grYp17nDQwTAeQEs70ME

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-string-49d97d07 -d '<json body>'
```

Example prompt: Mask this string for me so it's safe to display — hide everything except the first and last characters: 'helloworld123456'

## When to prefer this

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.

## Known failure modes

- 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

## 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 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.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 100000,
   "description": "Primary text input (max 100k chars). Processed first-party; not retained as a dataset."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "he*************ld",
  "schema": "delx/mask-string/v1",
  "source_len": 17
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-mask-string-49d97d07/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)
