Skip to content
Fourohtwo

apiacre.com/v1/data/schema-validate

Validate JSON data against a bounded JSON Schema Draft 2020-12 contract for nested objects, arrays, required properties, types, enums, formats, lengths, patterns, and numeric bounds; return deterministic instance and schema JSON Pointers, explicit error truncation, input hashes, and no remote reference resolution.

BaseSolanaAnswering
POSThttps://apiacre.com/v1/data/schema-validate

Uptime100% of 1 check in 30 days

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

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://apiacre.com/v1/data/schema-validate", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"check_formats":true,"instance":{"name":"Ada","score":"98"},"max_errors":25,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"name":{"minLength":1,"type":"string"},"score":{"minimum":0,"type":"integer"}},"required":["name","score"],"type":"object"}}),
});
console.log(await res.json());

Example input

{
  "check_formats": true,
  "instance": {
    "name": "Ada",
    "score": "98"
  },
  "max_errors": 25,
  "schema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "additionalProperties": false,
    "properties": {
      "name": {
        "minLength": 1,
        "type": "string"
      },
      "score": {
        "minimum": 0,
        "type": "integer"
      }
    },
    "required": [
      "name",
      "score"
    ],
    "type": "object"
  }
}

More from API AcreProvider status