72trust / 100

Validate

by Busker JSON Schema Validator in Email & messaging

x402 APIPassing, checked 2 h ago

Validate JSON against a JSON Schema (draft-07, 2019-09, 2020-12, with string formats): every violation with path, keyword and message. One instance, a JSON string, or up to 100 instances against one schema.

POST https://workbot1.oddsys.org/validate

Last 30 days

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

How to call it

# bash or zsh: see the payment challenge (nothing is charged)
curl -g -i -X POST 'https://workbot1.oddsys.org/validate' \
  -H 'content-type: application/json' \
  --data-raw '{"data":{"age":36,"email":"[email protected]"},"schema":{"properties":{"age":{"minimum":0,"type":"integer"},"email":{"format":"email","type":"string"}},"required":["email"],"type":"object"}}'
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%2Fworkbot1.oddsys.org%2Fvalidate
const res = await pay("https://workbot1.oddsys.org/validate", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: "{\"data\":{\"age\":36,\"email\":\"[email protected]\"},\"schema\":{\"properties\":{\"age\":{\"minimum\":0,\"type\":\"integer\"},\"email\":{\"format\":\"email\",\"type\":\"string\"}},\"required\":[\"email\"],\"type\":\"object\"}}",
});
console.log(await res.json());

Example input

{
  "data": {
    "age": 36,
    "email": "[email protected]"
  },
  "schema": {
    "properties": {
      "age": {
        "minimum": 0,
        "type": "integer"
      },
      "email": {
        "format": "email",
        "type": "string"
      }
    },
    "required": [
      "email"
    ],
    "type": "object"
  }
}

Example output

{
  "draft": "draft-07",
  "errors": [],
  "valid": true
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed4022.2 s$0.002
5 h agoPassed402730 ms$0.002
9 h agoPassed4021.8 s$0.002
13 h agoPassed4022.2 s$0.002
17 h agoPassed402114 ms$0.002
21 h agoPassed4022.1 s$0.002
24 h agoPassed402121 ms$0.002
28 h agoPassed4022.1 s$0.002
31 h agoPassed402741 ms$0.002
35 h agoPassed402121 ms$0.002
38 h agoPassed4022.2 s$0.002
42 h agoPassed4026.5 s$0.002
46 h agoPassed4022.2 s$0.002
2 days agoPassed4022.1 s$0.002
2 days agoPassed4022.1 s$0.002