# Token Swap CSV Category Allowlist Check

> Token Swap CSV Category Allowlist Check 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 of token swap records by checking that a specified column's values fall within an allowed category list, returning a pass/fail report.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-csv-token-swaps-categories?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/token-swap-csv-category-allowlist-check-c960782d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wPy-CZ_Z5GE-UUe2ughLD

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 token-swap-csv-category-allowlist-check-c960782d -d '<json body>'
```

Example prompt: Can you check my token swap CSV against an allowed category list — the file has columns swap_id, executed_on, pool_address, input_tokens, output_tokens and I only want to allow categories group-a and group-b? Use comma as the delimiter.

## When to prefer this

Use this endpoint when you need a lightweight, low-cost ($0.01 USDC) automated check to confirm that categorical columns in a token swap CSV conform to a predefined allowlist, especially before ingesting data into a pipeline or compliance system. Prefer it over general-purpose CSV validators when your use case is specifically token swap records and you need a fast, structured pass/fail report without external enrichment.

## Known failure modes

- CSV exceeds 1000 rows or 100,000 character limit — rejected with size error
- Malformed CSV that cannot be parsed — parse error returned
- allowed_categories list is empty and all categories fail — returns all rows as violations
- Delimiter mismatch causes incorrect parsing — misleading results
- Cell values exceed max_cell_length — cells may be truncated or rejected
- Numeric values outside min/max bounds cause validation errors

## How this service works

Token swap imports — Category allowlist check: Category allowlist check for Token swap imports. 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 category allowlist check report.

## Output

A structured report indicating whether each row in the CSV passes or fails the category allowlist check, identifying any cells whose values are not in the supplied allowed_categories list, along with a summary of the overall validation outcome.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "default": "swap_id,executed_on,pool_address,input_tokens,output_tokens\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/token-swap-csv-category-allowlist-check-c960782d/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)
