H

Hermes Commerce · Json Schema Repair Jobs

by Hermes Commerce

POSTBase

$0.01

per call · USD Coin on Base

Deterministic JSON repair for agent tool outputs, with optional JSON Schema validation. Built for tight agent loops at micropayment prices.

Endpoint

POST https://agent.kihustle.tech/services/json-schema-repair/jobs

9

Calls / 30d

6

Unique payers / 30d

Sep 9

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://agent.kihustle.tech/services/json-schema-repair/jobs", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "json_text": "{\"ok\": true,}",
    "schema": {
      "properties": {
        "ok": {
          "type": "boolean"
        }
      },
      "required": [
        "ok"
      ],
      "type": "object"
    }
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://agent.kihustle.tech/services/json-schema-repair/jobs" \
  -H "Content-Type: application/json" \
  -d '{"json_text":"{\"ok\": true,}","schema":{"properties":{"ok":{"type":"boolean"}},"required":["ok"],"type":"object"}}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "generated_at": "2026-01-01T00:00:00+00:00",
  "issue_codes": [],
  "job_id": "job_example",
  "limitations": [
    "Heuristic repair only."
  ],
  "next_jobs": [],
  "parse_ok": true,
  "repair_notes": [
    "repair_attempted"
  ],
  "repaired": true,
  "repaired_json": {
    "ok": true
  },
  "schema_errors": [],
  "schema_ok": true,
  "service": "json-schema-repair",
  "sources": [
    {
      "note": "client payload",
      "url": "inline://json_text"
    }
  ],
  "status": "completed",
  "summary": "JSON repair succeeded; repaired=True; schema_check=True. Deterministic repair for agent loops."
}

Payment details

Pay to0x1c8b3c34dca2ba2a71598f1f9e0bc2a04a0bea36
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of AI & Inference and the homepage with a featured placement.

Get featured →

More from Hermes Commerce & similar services