{"uid":"cap_f6p_6APhBTpID3iW842Yy","slug":"delx-json-contract-check-36ff6dc5","name":"Delx JSON Contract Check","description":"Check a JSON payload against a bounded structural contract and return path-level errors. Use it before an autonomous workflow acts on untrusted input, changes an API, retries a request, or evaluates production reliability. Returns bounded machine-readable JSON for $0.002 USDC via x402 on Base. Execution is deterministic, first-party, local-only, stateless, and does not call an upstream provider; structured validation failures are not billed.","url":"https://api.delx.ai/api/v1/x402/json-contract-check","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"contract":{"type":"object","description":"Bounded JSON Schema-like contract using type, required, properties, and enum."},"instance":{"description":"JSON value to check."}}},"responseSchema":{"type":"json","example":{"scope":"bounded structural subset: type, required, properties, enum","valid":true,"errors":[],"schema":"delx/json-contract-check/v1","error_count":0}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_MspdhTmolzgXxpVYgchUK","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a JSON payload against a caller-supplied structural contract and returns path-level validation errors","exampleAgentPrompt":"Before we process this webhook payload, check it against the contract that requires a top-level 'userId' string, an 'amount' number, and a 'status' field that must be one of 'pending', 'complete', or 'failed' — tell me if anything is missing or wrong.","exampleUseCases":[{"title":"Validating untrusted webhook payloads","prompt":"Before my workflow acts on this incoming webhook, check it against a contract expecting 'orderId' as a required string, 'items' as a required array, and 'total' as a required number — flag any fields that are missing or the wrong type."},{"title":"Guarding an API change in production","prompt":"I just changed my API response shape and I need to make sure the new payload still satisfies the old contract — the contract requires 'id', 'name', and 'email' as strings; run the check on this new response object and tell me if anything broke."},{"title":"Pre-flight check before autonomous retry","prompt":"Before my agent retries this failed request, validate the request body against a contract that requires 'action' to be one of 'create', 'update', or 'delete', and 'targetId' to be a required string — return any path-level errors so we know if the payload itself is the problem."}],"resultDescription":"Returns machine-readable JSON containing a list of path-level validation errors found in the instance against the provided contract. Each error identifies the specific JSON path and the nature of the violation (e.g. missing required field, wrong type, value not in enum). If the payload is fully valid, returns an empty errors list. Structured validation failures are not billed.","failureModes":["Malformed contract schema causes a contract parse error response","Instance is not valid JSON, resulting in a parse failure","Missing 'contract' or 'instance' fields in the request body cause a 400-level error","Payment of $0.002 USDC via x402 not provided or rejected, blocking execution","Contract uses unsupported schema keywords beyond type/required/properties/enum, which may be silently ignored or flagged"],"whenToPreferThis":"Choose this endpoint when you need deterministic, stateless, path-level JSON validation against a bounded structural contract — especially in autonomous agent pipelines where you need machine-readable error output before acting on untrusted input, retrying a request, or evaluating API reliability. It is ideal when you control both the contract and the instance, need guaranteed local-only execution with no upstream provider calls, and require that invalid payloads do not incur billing. Prefer it over general-purpose schema validators when operating in a pay-per-call x402 environment and when structured error paths matter more than human-readable messages.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:22.560Z","isFirstParty":false}