# AgentDataFormat by LIN Desk

> AgentDataFormat by LIN Desk is a paid API for AI agents from lin-desk-x402.lindesk.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-12).

Deterministically converts between CSV, JSON, YAML, and XML formats and validates JSON against Draft 2020-12 schemas, with no network I/O or external dependencies.

## Facts

- Endpoint: POST https://lin-desk-x402.lindesk.workers.dev/v1/dataformat?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdataformat-by-lin-desk-965f9c20
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mpqguLnqnUKegcHha8nSG

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 agentdataformat-by-lin-desk-965f9c20 -d '<json body>'
```

Example prompt: Convert this CSV text to JSON for me — the first row is the header and the delimiter is a comma — then validate the result against this JSON Schema Draft 2020-12 to make sure it's correct.

## When to prefer this

Choose this endpoint when you need deterministic, reproducible data format conversions or JSON Schema validation with no external network calls, side effects, or risk of non-determinism. It is ideal for agentic pipelines that must transform structured data (CSV/JSON/YAML/XML) reliably at low cost ($0.001/call) and where XXE-safe XML handling is important. Prefer it over general-purpose LLM-based conversion when you need strict schema compliance checking against Draft 2020-12.

## Known failure modes

- Input exceeds 100 KiB limit — request rejected
- Invalid or malformed input for the chosen operation (e.g. non-parseable CSV/XML) — error returned
- Schema validation errors returned when JSON does not conform to the provided Draft 2020-12 schema
- Unsupported or missing 'op' enum value — request rejected
- Payment failure via x402 — call not executed and not charged

## How this service works

Deterministic data convert and JSON Schema validate for AI agents: CSV/JSON/YAML/XML transforms plus Draft 2020-12 schema check. $0.001 per call, USDC on Base (x402). Max body 100 KiB. No network I/O; XXE-safe XML. Failures are not charged.

## Output

Returns the converted or validated output as a string: for format conversions (csv2json, json2csv, json2yaml, yaml2json, xml2json), the result is the target-format text; for json_format, it is pretty-printed JSON; for json_schema, it is a validation result indicating pass/fail and any schema violation details. Failures are not charged.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "op": {
   "enum": [
    "csv2json",
    "json2csv",
    "json2yaml",
    "json_format",
    "json_schema",
    "xml2json",
    "yaml2json"
   ],
   "type": "string",
   "description": "Conversion or validation operation"
  },
  "input": {
   "type": "string",
   "description": "Payload string (CSV/JSON/YAML/XML text); max 100 KiB"
  },
  "options": {
   "type": "object",
   "description": "Op-specific options (header, delimiter, indent, schema)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "op": "csv2json",
  "cols": [
   "name",
   "age"
  ],
  "rows": 2,
  "result": [
   {
    "age": "30",
    "name": "alice"
   },
   {
    "age": "25",
    "name": "bob"
   }
  ],
  "encoding": "utf-8",
  "elapsed_ms": 2
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentdataformat-by-lin-desk-965f9c20/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from lin-desk-x402.lindesk.workers.dev](https://www.zero.xyz/host/lin-desk-x402.lindesk.workers.dev/llms.txt)
