# Delx Commerce — JSON Object Rename Keys

> Delx Commerce — JSON Object Rename Keys 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).

Renames the keys of a JSON object according to a provided key mapping, returning the transformed object with collision tracking.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/json-object-rename-keys?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-object-rename-keys-faa9d0d6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MlHDIqdRF_K7mHR2HqhyV

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-object-rename-keys-faa9d0d6 -d '<json body>'
```

Example prompt: Rename the keys in this JSON object — change 'first_name' to 'firstName' and 'last_name' to 'lastName': {"first_name": "Ada", "last_name": "Lovelace", "id": 1}.

## When to prefer this

Choose this endpoint when you need a lightweight, verifiable, pay-per-use key renaming operation on a JSON object without signing up for a service or managing API keys. Ideal for AI agents that need to normalize field names between schemas on the fly, especially when auditability (SHA256 evidence, no-retention guarantee) matters. Prefer over custom code when operating in a stateless agent pipeline that already uses USDC/x402 micropayments.

## Known failure modes

- Object or mapping exceeds 128 properties — request rejected
- Invalid JSON structure in object or mapping fields — parse error
- Key collision when two source keys map to the same target key — reported in collisions array
- Payment failure or insufficient USDC balance — 402 response before processing
- Malformed request body — missing required fields returns 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 the input object with keys renamed according to the mapping, a list of any key collisions that occurred during renaming, a status field ('pass'), an evidence block confirming no data retention and including the SHA256 hash of the input, and a schema identifier for the operation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "object": {
   "type": "object",
   "description": "Object supplied to JSON Object Rename Keys; used only for this bounded calculation and processed in memory without retention.",
   "maxProperties": 128,
   "additionalProperties": true
  },
  "mapping": {
   "type": "object",
   "description": "Mapping supplied to JSON Object Rename Keys; used only for this bounded calculation and processed in memory without retention.",
   "maxProperties": 128,
   "additionalProperties": true
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "object": {
    "id": 1,
    "firstName": "Ada"
   },
   "collisions": []
  },
  "schema": "delx/util-json-object-rename-keys/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "17b6ed7c6acbd73e4c278919af805585c725f614019bd98fd34297fddb0367ca",
   "external_calls": 0
  },
  "operation": "data_batch:json_object_rename_keys"
 }
}
```

## More

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