{"uid":"cap_5OLj73JjjXkiAQZWPf5NB","slug":"x402-micro-pay-json-schema-validate-7506e4d0","name":"x402 Micro Pay — JSON Schema Validate","description":"Agent-ready microservices with x402 + Stripe rails, volume primitives, tutorials, and applet UI.","url":"https://x402-micro-pay.com/api/skills/json-schema-validate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"schema":{"type":"object"},"instance":{}}},"responseSchema":{"type":"json","example":{"ok":true,"path":"/api/skills/json-schema-validate"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.006","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.006/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__yW4oj-1QMffG8YZZlcqH","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.006","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates an HTTP request body or payload against a JSON Schema definition, returning a pass/fail result.","exampleAgentPrompt":"Can you validate this HTTP POST request body against a JSON schema for me? The request is of type http, method POST, and the body is {\"name\": \"Alice\", \"age\": 30} — I need to know if it passes schema validation.","exampleUseCases":[{"title":"Pre-flight API payload check","prompt":"Before I send this request to my orders API, can you validate the body {\"orderId\": \"abc123\", \"quantity\": 2} for an HTTP POST call to make sure it's schema-compliant?"},{"title":"Form submission validation in agent workflow","prompt":"I'm building an agent that collects user form data — can you check whether this object {\"email\": \"user@example.com\", \"age\": 25} would pass JSON schema validation for an HTTP POST request?"},{"title":"Debug a schema mismatch","prompt":"My API keeps rejecting my request body — can you run it through JSON schema validation? It's an HTTP POST with body {\"price\": \"ten\", \"quantity\": 1} and I want to see if the types are wrong."}],"resultDescription":"Returns a JSON object with an `ok` boolean indicating whether the provided HTTP request body/payload is valid according to the JSON schema, along with the validated path (e.g. `{\"ok\": true, \"path\": \"/api/skills/json-schema-validate\"}`). On validation failure, the response may include error details about which fields failed.","failureModes":["Missing required `input` field returns a 400-level error","Invalid or malformed JSON body causes parsing failure","Unsupported `type` value (must be 'http') returns an error","Schema mismatch detected returns ok: false with error details","Payment failure via x402/Stripe rails blocks the request (402 response)","Omitting required `method` field causes validation to fail immediately"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call JSON Schema validation microservice accessible to AI agents without standing up your own validation infrastructure. Particularly useful in agentic workflows where you want to validate HTTP request payloads on the fly before dispatching them, or when building pipelines that need schema compliance checks with micropayment billing via x402 + Stripe rails rather than a subscription model.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T00:32:47.030Z","isFirstParty":false,"canonicalSlug":"x402-micro-pay-json-schema-validate-7506e4d0"}