# Delx Rename Key

> Delx Rename Key is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Renames a single key in a JSON object, returning the object with the specified key replaced by a new name.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/rename-key
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-rename-key-78d76d65
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XLfp7vRkHXkRl4TJ-3zCS

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-rename-key-78d76d65 -d '<json body>'
```

Example prompt: Take this JSON object {"user_id": 42, "email": "a@b.com"} and rename the key 'user_id' to 'userId' for me.

## When to prefer this

Choose this endpoint when you need a lightweight, stateless, single-key rename on a JSON object without writing custom transformation code. Ideal for agent pipelines bridging two systems with mismatched field naming conventions. Prefer it over general-purpose code execution or full schema mapping tools when the task is simply renaming one key at a time at minimal cost ($0.001 USDC).

## Known failure modes

- Source key ('from_key') does not exist in the provided object — may return unchanged object or an error
- Target key ('to_key') already exists in the object — potential key collision
- Malformed or non-object input — likely returns a validation error
- Empty object provided — operation succeeds but result is still empty

## How this service works

Rename a single object key. Call when you adapt agent field names between systems. Returns renamed object for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.

## Output

Returns the input JSON object with the specified key renamed: the value is preserved unchanged, and the old key is removed while the new key holds the same value. The response is a local, first-party transformation with no external network calls.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "object": {
   "type": "object",
   "description": "Input field: object."
  },
  "to_key": {
   "type": "string",
   "description": "Input field: to key."
  },
  "from_key": {
   "type": "string",
   "description": "Input field: from key."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "object": {
   "id": 1
  },
  "schema": "delx/util-rename-key/v1",
  "renamed": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-rename-key-78d76d65/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
