# CSV Trim Cells

> CSV Trim Cells 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).

Trims surrounding whitespace from every cell in a caller-supplied CSV string, returning normalized values with counts and a versioned result contract.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/csv-trim-cells
- 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-trim-cells-f03db25c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZRzy20DTTZb1vQQnOVHRp

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-trim-cells-f03db25c -d '<json body>'
```

Example prompt: Can you trim all the surrounding whitespace from every cell in this CSV before I send it to the downstream tool? Here's the text: 'Name , Age , City\nAlice , 30 , New York '

## When to prefer this

Use this endpoint when you need a fast, deterministic, stateless way to strip surrounding whitespace from all cells in a CSV string before passing structured data to a downstream tool or system with a strict schema contract. Prefer it over custom code when running in an agent context where reliability, versioned output contracts, and zero-retention processing matter.

## Known failure modes

- Input text exceeds 8192 character limit — returns validation error
- Malformed or non-CSV input may produce unexpected trimming results
- Empty input string returns empty or minimal result
- Network or payment authorization failure returns 402 or connection error

## How this service works

CSV Trim Cells: CSV Trim Cells trims surrounding whitespace from every bounded CSV cell from bounded caller-supplied values without an external provider. Call CSV Trim Cells 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 Trim Cells as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, s…

## Output

Returns a versioned deterministic JSON object containing the trimmed CSV text with all cell whitespace removed, counts of how many cells were modified, normalized cell values, and a versioned result contract indicating the transformation outcome.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 8192,
   "description": "Text supplied to CSV Trim Cells; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "csv": "id,name\n1,Ada"
  },
  "schema": "delx/util-csv-trim-cells/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "2975a664dd731c637235b31a776ace9e587b75a46d372193dc67a9a52fea855f",
   "external_calls": 0
  },
  "operation": "data_batch:csv_trim_cells"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/csv-trim-cells-f03db25c/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)
