# CSV Rename Columns

> CSV Rename Columns 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-15).

Renames CSV header columns according to a caller-supplied mapping, returning the transformed CSV with counts and normalized values as deterministic JSON.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/csv-rename-columns
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/csv-rename-columns-66520f56
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_k0ZI360QVMvJvjE8fmcY4

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 csv-rename-columns-66520f56 -d '<json body>'
```

Example prompt: I have a CSV where the columns are named 'fname', 'lname', and 'amt' — can you rename them to 'first_name', 'last_name', and 'amount' so I can hand it off to the billing tool?

## When to prefer this

Use this endpoint when an agent needs to programmatically rename CSV column headers to match a downstream tool's strict schema contract, without needing an external provider or storing data. Prefer this over general-purpose code execution when you want a deterministic, versioned result with counts and normalized output rather than raw script output. Ideal as a lightweight pre-processing step in a data pipeline or multi-agent workflow.

## Known failure modes

- Mapping references a column name not found in the CSV headers — transformation may be partial or return a validation error
- CSV text exceeds 8192 character limit — request rejected
- Mapping object exceeds 128 properties — request rejected
- Malformed CSV input (e.g. inconsistent delimiters) — may cause unexpected header parsing
- Empty mapping object — CSV returned unchanged with zero renames counted

## How this service works

CSV Rename Columns: CSV Rename Columns renames CSV header columns using a caller mapping from bounded caller-supplied values without an external provider. Call CSV Rename Columns before an agent hands structured data or a batch plan to a downstream tool with a stricter contract. Returns the bounded transformation or validation finding with counts, normalized values, and a versioned result contract for CSV Rename Columns as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First…

## Output

Returns a versioned deterministic JSON object containing the transformed CSV with renamed headers, counts of columns renamed, normalized values, and a versioned result contract confirming the transformation outcome.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 8192,
   "description": "Text supplied to CSV Rename Columns; used only for this bounded calculation and processed in memory without retention."
  },
  "mapping": {
   "type": "object",
   "description": "Mapping supplied to CSV Rename Columns; 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": {
   "csv": "firstName,id\nAda,1",
   "headers": [
    "firstName",
    "id"
   ]
  },
  "schema": "delx/util-csv-rename-columns/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "ce661e0e0fda1bc758af27bedb3db0d1e9c03431eb63697fd9ce351321ade546",
   "external_calls": 0
  },
  "operation": "data_batch:csv_rename_columns"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/csv-rename-columns-66520f56/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)
