{"uid":"cap_MzcrxKCOrzP3pqEyVBsid","slug":"swift-bot-labs-toolbox-json-schema-validate-2ab2bc67","name":"Swift Bot Labs Toolbox – JSON Schema Validate","description":"62 small, deterministic utility APIs (DNS and e-mail checks, web extraction, EVM decoding, x402 checks, IP math, JSON/CSV, hashing, conversions). No account or API key: pay per call in USDC with x402.","url":"https://x402-toolbox.swiftbotlab.workers.dev/v1/json/validate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"data":{"description":"Data to validate (any JSON value; a string is parsed as JSON when it is valid JSON, otherwise validated as a plain string)"},"schema":{"description":"JSON Schema (a JSON value, or a string containing JSON)"},"formats":{"type":"boolean","default":true,"description":"Assert \"format\" keywords"}}},"responseSchema":{"type":"json","example":{"ok":true,"tool":"json-validate","result":{"valid":false,"errors":[{"path":"/id","keyword":"minimum","message":"must be >= 1"},{"path":"/email","keyword":"format","message":"must be a valid email"}],"errorCount":2}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wr8pqlrs7MVjfSNW1Tgx8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates any JSON value (or JSON-parseable string) against a provided JSON Schema and returns a list of validation errors with paths and keywords","exampleAgentPrompt":"Can you validate this JSON object against my schema and tell me exactly which fields are invalid and why? The data is {\"id\": 0, \"email\": \"not-an-email\"} and the schema requires id to be >= 1 and email to be a valid email format — please also assert format keywords.","exampleUseCases":[{"title":"API payload validation before sending","prompt":"Before I send this request payload to the orders API, can you check it against the orders schema and tell me if anything is wrong? The payload is {\"orderId\": -1, \"customerEmail\": \"john@\", \"quantity\": 5} and the schema requires orderId >= 1 and a valid email format."},{"title":"CI pipeline JSON config check","prompt":"I have a deploy config JSON I want to validate against our config schema before merging — can you run it through validation and list every error with its field path? Here's the config and schema."},{"title":"User form data integrity check","prompt":"A user just submitted a registration form and I have the data as JSON. Can you validate it against our user schema — checking formats like email and date-of-birth — and return a list of all the errors so I can show them which fields to fix?"}],"resultDescription":"Returns a JSON object with an `ok` boolean, the tool name, and a `result` object containing: `valid` (true/false), `errors` (array of objects each with `path`, `keyword`, and `message`), and `errorCount` (integer). If valid, errors array is empty and errorCount is 0.","failureModes":["Malformed JSON schema causes a schema-parsing error response","Data that cannot be parsed as JSON and is not a plain string may produce unexpected results","Invalid or unsupported JSON Schema keywords may be silently ignored or cause errors","Payment failure via x402 results in a 402 response before validation occurs","Very large JSON payloads may hit Cloudflare Workers size limits"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, deterministic, pay-per-call JSON Schema validator with no API key or account setup — ideal for ad-hoc validation in automated pipelines, agent workflows, or one-off checks. Prefer it over self-hosted validators when you want zero infrastructure overhead and are already using x402 micropayments. It supports format keyword assertion as an option, which many minimal validators skip.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:40:19.140Z","isFirstParty":false,"canonicalSlug":"swift-bot-labs-toolbox-json-schema-validate-2ab2bc67"}