# Delx Commerce — JSON Pointer Escape

> Delx Commerce — JSON Pointer Escape 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).

Escapes a string token for safe use as a JSON Pointer segment by replacing '~' with '~0' and '/' with '~1'

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/json-pointer-escape?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-json-pointer-escape-7a9f5cc5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_odntCZhgHX5l3MnxHsAU3

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-json-pointer-escape-7a9f5cc5 -d '<json body>'
```

Example prompt: Escape the string 'a/b~c' so it can be safely used as a JSON Pointer segment — I need the RFC 6901 encoded version where slashes become ~1 and tildes become ~0.

## When to prefer this

Choose this endpoint when you need a verifiable, pay-per-use, no-signup utility for RFC 6901 JSON Pointer escaping — especially in agent workflows where auditability (SHA-256 input hash, no-retention evidence) matters. Prefer it over implementing the escaping inline when you need a tamper-evident proof of the transformation or when operating in a trust-minimized environment using USDC micropayments.

## Known failure modes

- Input token exceeds 8192 character limit — rejected with a validation error
- Malformed JSON body — returns a 400-level error
- Payment not included or invalid x402 payment header — returns HTTP 402 Payment Required
- Network timeout if the service is temporarily unavailable

## How this service works

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

## Output

Returns the escaped string (e.g. 'a~1b~0c' for input 'a/b~c'), along with processing metadata including a SHA-256 hash of the input, confirmation that no data was retained, and the count of external calls made (always 0). The response schema is 'delx/util-json-pointer-escape/v1' with a 'pass' status.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "token": {
   "type": "string",
   "maxLength": 8192,
   "description": "Token supplied to JSON Pointer Escape; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "token": "a~1b~0c"
  },
  "schema": "delx/util-json-pointer-escape/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "3927fe1bae99d89a23fe6e2ad6ea1b89041d27d864253356169270df01635a75",
   "external_calls": 0
  },
  "operation": "data_batch:json_pointer_escape"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-json-pointer-escape-7a9f5cc5/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)
