75trust / 100

Validate

by Validate against JSON Schema in Email & messaging

x402 APIPassing, checked 2 h ago

Validate a JSON value against a JSON Schema (draft-07, with the standard string formats enabled). An invalid schema is rejected as a clean 400 before payment; a valid schema that the data simply fails to satisfy is a successful result with valid=false and a list of errors (path, keyword, message).

POST https://jsonschema.openverbs.com/v1/validate

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
584 ms typical, 615 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://jsonschema.openverbs.com/v1/validate" \
  -H "content-type: application/json" \
  -d '{"data":"example","schema":{}}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fjsonschema.openverbs.com%2Fv1%2Fvalidate
const res = await pay("https://jsonschema.openverbs.com/v1/validate", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"data":"example","schema":{}}),
});
console.log(await res.json());

Example input

{
  "data": "example",
  "schema": {}
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402570 ms$0.004
5 h agoPassed402570 ms$0.004
9 h agoPassed402582 ms$0.004
13 h agoPassed402613 ms$0.004
16 h agoPassed402606 ms$0.004
20 h agoPassed402615 ms$0.004
24 h agoPassed402580 ms$0.004
27 h agoPassed402594 ms$0.004
31 h agoPassed402614 ms$0.004
34 h agoPassed402572 ms$0.004
38 h agoPassed402580 ms$0.004
42 h agoPassed402615 ms$0.004
45 h agoPassed402584 ms$0.004
2 days agoPassed402590 ms$0.004
2 days agoPassed402571 ms$0.004