{"uid":"cap_mQ5FOjsWJ58X1mXe2xz2s","slug":"delx-response-contract-diff-4ba59b9b","name":"Delx Response Contract Diff","description":"Compare expected and actual top-level response fields and value types. Use it as a bounded preflight or analysis step inside an enterprise agent workflow before data, policy, integration, security, or commercial decisions reach production. Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, memory-only, and has no paid upstream or input retention. Results are advisory; the caller remains responsible for authorization and…","url":"https://api.delx.ai/api/v1/x402/response-contract-diff","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"actual":{"type":"object","description":"Input field: actual."},"expected":{"type":"object","description":"Input field: expected."}}},"responseSchema":{"type":"json","example":{"scope":"top-level structural comparison","schema":"delx/util-response-contract-diff/v1","compatible":false,"missing_fields":["ready"],"type_mismatches":["id"],"unexpected_fields":[]}},"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_lOHEXHNutKmXRvkNpIODS","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":"Compares expected and actual top-level response fields and value types, returning a machine-readable JSON diff for contract validation.","exampleAgentPrompt":"Compare this expected response shape — {\"userId\": \"string\", \"score\": \"number\"} — against the actual response I got back — {\"userId\": 42, \"score\": 99, \"extra\": \"surprise\"} — and tell me what fields are missing, unexpected, or the wrong type.","exampleUseCases":[{"title":"Preflight check before production pipeline","prompt":"Before my agent pipeline processes this API response and writes it to the database, check if the actual payload {\"id\": \"abc\", \"amount\": \"100\", \"status\": true} matches the expected contract {\"id\": \"string\", \"amount\": \"number\", \"status\": \"string\"} — flag any type mismatches or missing fields."},{"title":"Detect breaking API changes post-deploy","prompt":"After our third-party data provider pushed an update, I'm getting different response shapes. Compare the expected contract {\"name\": \"string\", \"value\": \"number\", \"timestamp\": \"string\"} with the actual response {\"name\": \"string\", \"val\": 42} and tell me what changed or broke."},{"title":"Policy compliance validation in agentic workflow","prompt":"My compliance agent needs to verify that this vendor response {\"accountId\": \"X9\", \"limit\": 5000, \"currency\": \"USD\", \"flagged\": false} matches the required policy contract {\"accountId\": \"string\", \"limit\": \"number\", \"currency\": \"string\"} before approving the transaction — run the contract diff and report any issues."}],"resultDescription":"Returns deterministic machine-readable JSON detailing the differences between the expected and actual response objects, including missing fields, unexpected extra fields, and value type mismatches at the top level. The result is advisory and stateless.","failureModes":["Missing 'expected' or 'actual' field in request body returns validation error","Non-object values for expected or actual cause schema rejection","Deeply nested field differences beyond top-level are not detected","Network timeout if the endpoint is temporarily unavailable","Payment failure via x402 if insufficient USDC balance on Base"],"whenToPreferThis":"Choose this endpoint when you need a fast, deterministic, stateless preflight check to verify that an API response matches an expected contract schema before downstream processing — especially inside enterprise agent workflows where data integrity, policy compliance, or integration correctness must be confirmed cheaply ($0.003) without retaining any input data. Prefer it over manual schema validation logic or heavier contract testing frameworks when you only need top-level field and type comparison.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:16:47.140Z","isFirstParty":false}