# CSV Required Columns Check

> CSV Required Columns Check 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).

Validates that a CSV header contains all specified required column names, returning counts and normalized findings as versioned deterministic JSON.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/csv-required-columns-check
- 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-required-columns-check-db95bf46
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0PyIjWlLu35tzL-It2qkU

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-required-columns-check-db95bf46 -d '<json body>'
```

Example prompt: Before handing this CSV off to the next step, check that it has all the required columns — 'user_id', 'email', 'created_at', and 'status' — and tell me which ones are missing if any.

## When to prefer this

Use this endpoint when an agent needs to programmatically verify that a CSV header satisfies a known contract before passing data to a downstream tool, ETL pipeline, or API with strict schema requirements. Prefer it over manual inspection when the required column list is explicit and deterministic validation with a structured, versioned JSON result is needed. It is especially useful as a preflight gate in agentic workflows where failing early on missing columns prevents costly downstream errors.

## Known failure modes

- Malformed or empty CSV text may result in no header being parsed, returning all columns as missing
- Required columns list is empty — may return trivially passing result with no meaningful validation
- Column name matching may be case-sensitive, causing false negatives if header uses different casing
- Input exceeds maxLength (8192 chars) causing rejection
- required_columns array exceeds 256 items causing rejection
- Whitespace or delimiter inconsistencies in the CSV header may cause column names to not match expected values

## How this service works

CSV Required Columns Check: CSV Required Columns Check checks a CSV header for required column names from bounded caller-supplied values without an external provider. Call CSV Required Columns Check 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 Required Columns Check as versioned deterministic JSON. Price: $0.001…

## Output

Returns a versioned deterministic JSON object containing: a pass/fail validation result, counts of required vs present columns, a list of missing column names, a list of found column names, and normalized values — all under a versioned result contract.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 8192,
   "description": "Text supplied to CSV Required Columns Check; used only for this bounded calculation and processed in memory without retention."
  },
  "required_columns": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 8192
   },
   "maxItems": 256,
   "description": "Required Columns supplied to CSV Required Columns Check; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "passed": true,
   "missing_columns": []
  },
  "schema": "delx/util-csv-required-columns-check/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "775c5abb7e34060297d8b70ad6cc76e9040bb7f6113985a9158905cc7bcafa42",
   "external_calls": 0
  },
  "operation": "data_batch:csv_required_columns_check"
 }
}
```

## More

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