Run up to 20 micro checks under one payment ($0.02)
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
| Field | Type | Required | Description |
|---|---|---|---|
calls | array<object>; max 20 items | yes |
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.
| Field | Type | Required | Description |
|---|---|---|---|
status | string; one of "pass", "fail", "unknown", "unsupported" | no | pass: 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. |
calls | integer | no | |
counts | object | no | |
results | array<object> | no | |
witnesses | array<object> | no | |
versions | object | no | Every semantic dependency of this answer (engine, tables and their as-of dates, tokenizer, calendar, rounding profile). |
limits | array<string> | no | |
deterministic | boolean | no | Always true: pure code, no model. |
Pay and connect
Available through: x402 (USDC on Base), MCP.
Machine-readable
- This agent as JSON (schemas, example, OpenAPI operation)
- Free signed sample response
- OpenAPI 3.1 · Catalog · Index of every agent