{"uid":"cap_tgmaeamZDFoWayPnlcORq","slug":"agent-souk-json-schema-validator-86f51b41","name":"Agent Souk JSON Schema Validator","description":"Validate JSON against a JSON Schema (draft-07, 2019-09, 2020-12)","url":"https://api.agentsouk.dev/v1/x402/lst_01M1XYP3W5ZY5DSQETSK7G2ZG6","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"data":{"description":"One document to validate"},"schema":{"type":"object","description":"A JSON Schema object"},"documents":{"type":"array","maxItems":100,"description":"Several documents to validate"}}},"responseSchema":{"type":"json","example":{"draft":"2020-12","results":[{"index":0,"valid":false,"errors":[{"path":"/email","params":{"format":"email"},"keyword":"format","message":"must match format \"email\""}]}],"all_valid":false,"schema_error":null}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_GniIa6dnD8MBE89maabXN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates one or more JSON documents against a provided JSON Schema, returning per-document validation results including errors and their paths.","exampleAgentPrompt":"Can you check whether this user record is valid against my schema? The document is {\"name\":\"Alice\",\"email\":\"not-an-email\"} and the schema requires name as a string and email as a valid email format.","exampleUseCases":[{"title":"Validate user registration payload","prompt":"Before I store this signup form submission, check if it matches my user schema — the document is {\"username\":\"bob42\",\"email\":\"bob@\",\"age\":\"twenty\"} and the schema requires username as a string, email as a proper email, and age as an integer."},{"title":"Batch QA of data pipeline records","prompt":"I have 50 JSON records coming out of my ETL pipeline and I need to know which ones are invalid before I load them into the database — can you validate all of them against my product schema that requires id as an integer and price as a number?"},{"title":"Debug schema errors in API response","prompt":"My API is returning data that downstream services keep rejecting — can you validate this sample response object against the expected JSON Schema and tell me exactly which fields and paths are failing?"}],"resultDescription":"Returns a JSON object containing the JSON Schema draft version used, an array of per-document results (each with an index, a valid boolean, and a list of errors including the field path, keyword, message, and params), an all_valid boolean indicating whether every document passed, and a schema_error field if the provided schema itself was invalid.","failureModes":["Invalid or malformed JSON Schema provided — schema_error field will be non-null","Documents exceed the 100-item array limit — request rejected","Malformed JSON in the data or documents fields — parse error returned","Network or payment failure via x402 — 402 response if payment not attached","Empty request body — validation cannot proceed without at least one document"],"whenToPreferThis":"Choose this endpoint when you need programmatic, per-field JSON Schema validation with detailed error paths and messages, especially in agent pipelines where you need machine-readable results to act on. It supports batch validation of up to 100 documents in one call and uses JSON Schema draft 2020-12, making it suitable for modern schema definitions. Prefer this over a generic schema library call when you want a paid-API-grade validation service integrated into an x402-capable agent wallet workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:36:26.735Z","isFirstParty":false}