75trust / 100

Demand Csv Import Preflight

by CSV Import Preflight in Documents & files

x402 APIPassing, checked 4 h ago

Check up to 500 supplied CSV records for quoting, column counts, duplicate headers, spreadsheet-formula prefixes and caller-declared scalar types. Return bounded row/column findings and input integrity hashes. No cell execution, automatic repair, PII detection or import-success guarantee.

POST
https://www.mahastrategies.com/api/v1/demand/csv-import-preflight
Price
$0.013
per call in USDC
Uptime
100%
last 30 days
Response time
358 ms
561 ms slowest 5%
Last check
Passed
4 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed

How to call it

POST https://www.mahastrategies.com/api/v1/demand/csv-import-preflight

Each call costs $0.0135 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://www.mahastrategies.com/api/v1/demand/csv-import-preflight
content-type: application/json

{
  "columns": [
    {
      "name": "sku",
      "required": true,
      "type": "string"
    },
    {
      "name": "quantity",
      "required": true,
      "type": "integer"
    }
  ],
  "csv": "sku,quantity\nitem-a,2\nitem-b,3\n",
  "dataClass": "synthetic",
  "delimiter": ","
}

Parameters

ParameterTypeRequiredDescription
columnsarrayYes
csvstringYes
dataClassstringYes One of: public, synthetic.
delimiterstringYes One of: ,, ;, .

Example response

The provider's example. We can't check it without paying.

{
  "inputHash": "sha256:efc229558cdc26382c35e0c4b6d00fe5bd61b776621a044d02bccb5e4…",
  "limitations": [
    "Public or synthetic input only. Caller labels do not detect sens…"
  ],
  "productId": "csv-import-preflight",
  "receiptDigest": "sha256:886622115d2deac7bf476e4b429afcd1af80e0640eec910118b812f6c…",
  "result": {
    "cellsExecuted": false,
    "columnsObserved": 2,
    "findings": [],
    "findingsTruncated": false,
    "readyUnderDeclaredSchema": true,
    "recordsChecked": 2
  },
  "resultHash": "sha256:34eb9e2577f2a84abdea73c50cc43556c79de846fe5743e3256a77489…",
  "version": "maha-demand6/1.0.0"
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.0135.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://www.mahastrategies.com/api/v1/demand/csv-import-preflight' \
  -H 'content-type: application/json' \
  --data-raw '{"columns":[{"name":"sku","required":true,"type":"string"},{"name":"quantity","required":true,"type":"integer"}],"csv":"sku,quantity\nitem-a,2\nitem-b,3\n","dataClass":"synthetic","delimiter":","}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://www.mahastrategies.com/api/v1/demand/csv-import-preflight' \
  -H 'content-type: application/json' \
  --data-raw '{"columns":[{"name":"sku","required":true,"type":"string"},{"name":"quantity","required":true,"type":"integer"}],"csv":"sku,quantity\nitem-a,2\nitem-b,3\n","dataClass":"synthetic","delimiter":","}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.0135 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.0135" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.0135 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fwww.mahastrategies.com%2Fapi%2Fv1%2Fdemand%2Fcsv-import-preflight&method=POST
const res = await pay("https://www.mahastrategies.com/api/v1/demand/csv-import-preflight", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "columns": [
      {
        "name": "sku",
        "required": true,
        "type": "string"
      },
      {
        "name": "quantity",
        "required": true,
        "type": "integer"
      }
    ],
    "csv": "sku,quantity\nitem-a,2\nitem-b,3\n",
    "dataClass": "synthetic",
    "delimiter": ","
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.0135 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.0135"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://www.mahastrategies.com/api/v1/demand/csv-import-preflight",
        json={
            "columns": [
                {
                    "name": "sku",
                    "required": True,
                    "type": "string",
                },
                {
                    "name": "quantity",
                    "required": True,
                    "type": "integer",
                },
            ],
            "csv": "sku,quantity\nitem-a,2\nitem-b,3\n",
            "dataClass": "synthetic",
            "delimiter": ",",
        },
    )
    print(res.status_code, res.text)

Security scan

No findings

We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
4 h agoPassed402539 ms$0.013
8 h agoPassed402336 ms$0.013
12 h agoPassed402412 ms$0.013
17 h agoPassed402292 ms$0.013
21 h agoPassed402364 ms$0.013
Show 10 older checks
24 h agoPassed402490 ms$0.013
28 h agoPassed402561 ms$0.013
32 h agoPassed402335 ms$0.013
36 h agoPassed402433 ms$0.013
40 h agoPassed402549 ms$0.013
44 h agoPassed402273 ms$0.013
47 h agoPassed402311 ms$0.013
2 days agoPassed402358 ms$0.013
2 days agoPassed402303 ms$0.013
2 days agoPassed402348 ms$0.013