Run up to 20 micro checks under one payment ($0.02)

$0.02 USDC per call · Agent infrastructure · POST /api/v1/micro-batch · Id micro-batch

Bundles up to 20 calls to any pure micro check (catalog entries that are neither stateful nor network-reading, e.g. checksum, patch-anchor, allocate, business-deadline) into one x402 settlement, so a full batch costs $0.001 per check. Every call is validated before payment; one invalid call rejects the batch with its index. The request is capped at 128kb and a CPU weight of 40 (an ordinary check weighs 1; dst-check 5, time-bucket-check 5, float-stability 2, font-convert 20, font-glyph-svg 3, font-face-css 3). Results come back in order, each exactly as the single-call endpoint returns it.

What you get

A full batch of 20 checks costs $0.02, a fifth of the single-call price per check.

Call it

Send the JSON body below to https://agents.writerslogic.com/api/v1/micro-batch. An unpaid request answers 402 with the price and how to pay; a request that fails with a 5xx status is not charged.

curl -i -X POST https://agents.writerslogic.com/api/v1/micro-batch \
  -H 'content-type: application/json' \
  -d '{"calls":[{"tool":"acceptance-receipt","input":{"output":{"total":10},"tests":[{"id":"positive","kind":"number-between","path":"/total","min":0}]}},{"tool":"acceptance-receipt","input":{"output":{"total":-1},"tests":[{"id":"positive","kind":"number-between","path":"/total","min":0}]}}]}'

Input

FieldTypeRequiredDescription
callsarray<object>; max 20 itemsyes

Example request body

{
  "calls": [
    {
      "tool": "acceptance-receipt",
      "input": {
        "output": {
          "total": 10
        },
        "tests": [
          {
            "id": "positive",
            "kind": "number-between",
            "path": "/total",
            "min": 0
          }
        ]
      }
    },
    {
      "tool": "acceptance-receipt",
      "input": {
        "output": {
          "total": -1
        },
        "tests": [
          {
            "id": "positive",
            "kind": "number-between",
            "path": "/total",
            "min": 0
          }
        ]
      }
    }
  ]
}

Result

The response is { "data": ..., "_provenance": ... }. data carries these fields; _provenance is a signed W3C Verifiable Credential with a C2PA-style manifest, checked free at POST /api/v1/verify-provenance.

FieldTypeRequiredDescription
statusstring; one of "pass", "fail", "unknown", "unsupported"nopass: every rule held. fail: a rule was violated (see witnesses). unknown: the input lacks the evidence to decide. unsupported: outside what this engine covers. Missing evidence is never a pass.
callsintegerno
countsobjectno
resultsarray<object>no
witnessesarray<object>no
versionsobjectnoEvery semantic dependency of this answer (engine, tables and their as-of dates, tokenizer, calendar, rounding profile).
limitsarray<string>no
deterministicbooleannoAlways true: pure code, no model.

Pay and connect

Available through: x402 (USDC on Base), MCP.

Machine-readable