# CSV Training Data Whitespace Audit

> CSV Training Data Whitespace Audit is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-12).

Validates a CSV file's whitespace formatting and declared table contract, checking up to 1000 rows for whitespace issues in cells, headers, and values.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-csv-training-data-whitespace?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/csv-training-data-whitespace-audit-0e3e7c6a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IZsEyXpNzNduqJs7CRUzh

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-training-data-whitespace-audit-0e3e7c6a -d '<json body>'
```

Example prompt: Can you audit this CSV for whitespace issues — it's my ML training data with columns example_id, created_on, label, text_length, and sample_weight, using a comma delimiter, and the only allowed label categories are group-a and group-b?

## When to prefer this

Choose this endpoint when you need a fast, low-cost whitespace-specific audit of a CSV training dataset (up to 1000 rows) before ingesting it into a machine learning pipeline. It is purpose-built for training data quality checks including category validation, numeric bounds, and cell length limits, and supports quoted cells — making it more appropriate than a generic CSV linter when the focus is on whitespace hygiene and declared schema contracts for ML data.

## Known failure modes

- CSV exceeds 100,000 character limit — request rejected
- CSV has fewer than 1 character — rejected as empty
- Delimiter not one of comma, semicolon, or tab — validation error
- max_cell_length outside 1–5000 range — parameter error
- allowed_categories list exceeds 100 items — parameter error
- Malformed CSV that cannot be parsed — error response
- Payment of 0.01 USDC not provided — 402 payment required

## How this service works

Training example metadata — Whitespace audit: Whitespace audit for Training example metadata. Validate a declared CSV table contract, up to 1000 rows. Quoted cells supported; no external enrichment. Specialised preset in a shared 50-profile, 20-operation engine. 0.01 USDC includes one CSV whitespace audit report.

## Output

Returns a whitespace audit report for the submitted CSV, identifying cells, rows, or headers with leading/trailing whitespace, unexpected spacing, or values that violate the declared contract (allowed categories, numeric bounds, or max cell length), covering up to 1000 rows.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "default": "example_id,created_on,label,text_length,sample_weight\nrecord-a,2026-01-01,group-a,10,2\nrecord-b,2026-01-02,group-b,20,3",
   "maxLength": 100000,
   "minLength": 1
  },
  "maximum": {
   "type": "number",
   "default": 1000000000000,
   "maximum": 1000000000000,
   "minimum": -1000000000000
  },
  "minimum": {
   "type": "number",
   "default": -1000000000000,
   "maximum": 1000000000000,
   "minimum": -1000000000000
  },
  "delimiter": {
   "enum": [
    ",",
    ";",
    "\t"
   ],
   "type": "string",
   "default": ","
  },
  "max_cell_length": {
   "type": "integer",
   "default": 1000,
   "maximum": 5000,
   "minimum": 1
  },
  "allowed_categories": {
   "type": "array",
   "items": {
    "type": "string",
    "default": "",
    "maxLength": 100,
    "minLength": 1
   },
   "default": [
    "group-a",
    "group-b"
   ],
   "maxItems": 100,
   "minItems": 0
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/csv-training-data-whitespace-audit-0e3e7c6a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
