{"uid":"cap_CwmT-GAM1j6Dsj6VCIyrq","slug":"delx-commerce-json-validate-79abb3a7","name":"Delx Commerce JSON Validate","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/json-validate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","bodyType","body"],"properties":{"body":{"type":"object","additionalProperties":true},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","additionalProperties":true}}}}},"responseSchema":{"type":"json","example":{}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_43YR0lZ9bT1D-umrVpu1K","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates the structure and schema of a JSON HTTP request body against an expected output example, returning a validation result","exampleAgentPrompt":"Can you validate this JSON body I'm about to POST — it's a plain JSON object with fields 'name' and 'email' — and check it against an expected output that looks like {\"status\": \"ok\", \"id\": 123}?","exampleUseCases":[{"title":"Pre-flight API payload check","prompt":"Before I send this JSON body to my API, can you validate it? The body is {\"userId\": \"abc123\", \"amount\": 50} and the expected output should look like {\"success\": true, \"transactionId\": \"xyz\"}."},{"title":"Form submission JSON validation","prompt":"I have a form-data body with fields 'firstName', 'lastName', and 'email' that I'm about to PUT to a service — can you validate it against an expected response that looks like {\"created\": true, \"id\": 42}?"},{"title":"Schema conformance check before agent action","prompt":"My agent is about to make a PATCH request with this JSON body: {\"status\": \"active\", \"updatedAt\": \"2024-01-01\"} — can you validate whether it's structured correctly given the expected output format {\"updated\": true}?"}],"resultDescription":"A JSON object containing the validation outcome — indicating whether the provided request body conforms to the expected structure and output schema. The response is a JSON object (exact shape depends on the validation result).","failureModes":["Missing required fields ('input' or 'output') returns a validation error","Incorrect bodyType enum value (not 'json', 'form-data', or 'text') causes rejection","Body object that cannot be parsed as JSON results in an error","Network or payment failure (x402 USDC payment not completed) blocks the request","Empty or malformed example output object may produce inconclusive results"],"whenToPreferThis":"Use this endpoint when an AI agent needs to verify that a JSON HTTP request body is correctly structured before dispatching it to a downstream API — especially in automated pipelines where malformed payloads would cause downstream failures. It is particularly useful as a low-cost ($0.001 USDC) pre-flight check. Prefer it over generic JSON linting tools when you need verifiable, pay-per-result delivery with crypto payment via x402 on Base or Solana.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:50.993Z","isFirstParty":false,"canonicalSlug":"delx-commerce-json-validate-79abb3a7"}