Skip to content
Fourohtwo

Validate CSV before import using a fixed JSON column specification

api.mekler.ai/v1/data/csv/validate-data

Validate CSV before import using a fixed JSON column specification. Checks missing/extra columns, required cells, string/integer/decimal/boolean/date types, uniqueness, allowed values and numeric/row-count bounds. Returns pass/fail with row/column error codes. POST JSON with csv and spec.columns; schemas/examples attached. Full contract: /openapi.json. Max 2,000 rows, 50 columns, 256 KiB; first 50

SolanaBaseUnchecked
POSThttps://api.mekler.ai/v1/data/csv/validate-data

UptimeNot checked yet

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://api.mekler.ai/v1/data/csv/validate-data", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"csv":"id,amount\na,12.50\na,-2.00\n","spec":{"columns":[{"name":"id","required":true,"type":"string","unique":true},{"max":"100","min":"0","name":"amount","required":true,"type":"decimal"}],"min_rows":1}}),
});
console.log(await res.json());

Example input

{
  "csv": "id,amount\na,12.50\na,-2.00\n",
  "spec": {
    "columns": [
      {
        "name": "id",
        "required": true,
        "type": "string",
        "unique": true
      },
      {
        "max": "100",
        "min": "0",
        "name": "amount",
        "required": true,
        "type": "decimal"
      }
    ],
    "min_rows": 1
  }
}

More from Mekler AI