# Cloud Usage Imports — CSV Header Contract Check

> Cloud Usage Imports — CSV Header Contract 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-19).

Validates the header contract of a cloud usage CSV file, checking column names, data types, and cell constraints for up to 1000 rows.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-csv-cloud-usage-schema?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cloud-usage-imports-csv-header-contract-check-94025940
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_X_ZOUtSIXb5okW1eKcgQs

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 cloud-usage-imports-csv-header-contract-check-94025940 -d '<json body>'
```

Example prompt: Can you check whether my cloud usage CSV file has valid headers and conforms to the expected contract? The file uses comma delimiters, and I want to make sure columns like usage_id, reported_on, resource_id, used_units, and billed_amount are all correctly formatted, with allowed categories group-a and group-b, and billed_amount values between 0 and 10000.

## When to prefer this

Choose this endpoint when you need a lightweight, fast, and low-cost ($0.01 USDC) validation of a cloud usage CSV file's header contract before importing into a billing or analytics system. It is purpose-built for the cloud usage domain (usage_id, reported_on, resource_id, used_units, billed_amount schema) and supports configurable delimiters, category allowlists, and numeric bounds — making it ideal for automated pipeline quality gates or pre-upload sanity checks where full data enrichment is not needed.

## Known failure modes

- CSV exceeds 100,000 character limit — rejected with size error
- More than 1000 rows submitted — only header contract checked up to limit
- Invalid delimiter specified — must be comma, semicolon, or tab
- Empty CSV string submitted — validation cannot proceed
- Cell values contain unrecognized categories not in allowed_categories list
- Numeric values outside declared minimum/maximum bounds flagged as violations
- Malformed quoted cells may cause parse errors if quoting is inconsistent

## How this service works

Cloud usage imports — Header contract check: Header contract check for Cloud usage 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 header contract check report.

## Output

Returns a structured header contract check report indicating whether the CSV conforms to the declared schema, including column presence and ordering, data type conformance per column, out-of-range numeric values, disallowed category values, cell length violations, and row-level error details for up to 1000 rows.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "default": "usage_id,reported_on,resource_id,used_units,billed_amount\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/cloud-usage-imports-csv-header-contract-check-94025940/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)
