{"uid":"cap_vphUg0IVlhu4-83qBuPmy","slug":"x402-resource-match-5737b723","name":"X402 Resource Match","description":"X402 Resource Match: X402 Resource Match compares challenge resource URL with the intended paid resource from bounded caller-supplied values without an external provider. Call X402 Resource Match before paying for or accepting an x402 or agent delivery assembled from caller-supplied challenge and result metadata. Returns contract-specific checks, normalized evidence, mismatch reasons, and an explicit acceptance or rejection status for X402 Resource Match as versioned deterministic JSON. Price:…","url":"https://api.delx.ai/api/v1/x402/x402-resource-match?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"expected":{"type":"string","maxLength":8192,"description":"Expected supplied to X402 Resource Match; used only for this bounded calculation and processed in memory without retention."},"resource":{"type":"string","maxLength":8192,"description":"Resource supplied to X402 Resource Match; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"actual":"https://api.delx.ai/x402/utility/example","matched":true,"expected":"https://api.delx.ai/x402/utility/example"},"schema":"delx/util-x402-resource-match/v1","status":"pass","evidence":{"retained":false,"input_sha256":"f15a00a5d5428ddfc6587bd6dabe4c7782ccded313974b1a96a3d99acfec7a90","external_calls":0},"operation":"delivery_contract:x402_resource_match"}},"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_iTBQDeYFOceAmURM9ay4J","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":"Compares an x402 challenge resource URL against an expected paid resource URL to deterministically validate they match before payment or delivery","exampleAgentPrompt":"Before I authorize the x402 payment, check that the challenge resource URL 'https://api.example.com/content/article-42' actually matches the resource I expected to pay for, 'https://api.example.com/content/article-42', and tell me whether to accept or reject it.","exampleUseCases":[{"title":"Guard against x402 resource spoofing","prompt":"I'm about to pay an x402 invoice — can you verify that the challenge resource 'https://provider.io/data/report-99' matches the resource I intended to purchase, 'https://provider.io/data/report-99', and give me a clear accept or reject decision?"},{"title":"Validate agent delivery resource before acceptance","prompt":"An agent just returned a delivery result — before I accept it, check whether the challenge resource URL 'https://agent.service/result/task-7' matches the expected resource 'https://agent.service/result/task-7' and tell me if there are any mismatches."},{"title":"Audit x402 payment challenge integrity","prompt":"Audit this x402 challenge for me: the challenge says resource is 'https://api.delx.ai/api/v1/data/feed-3' but I was expecting 'https://api.delx.ai/api/v1/data/feed-3' — do they match and is it safe to proceed with payment?"}],"resultDescription":"Returns a versioned deterministic JSON object containing: an explicit accept or reject status, contract-specific validation checks, normalized evidence derived from both URLs, and a list of mismatch reasons if any discrepancy is detected. No data is retained after the in-memory comparison.","failureModes":["Malformed or excessively long URL strings may be rejected with a validation error","If either 'expected' or 'resource' field is missing the request may return an error","Ambiguous or non-URL values may produce inconclusive match results","Network or service errors may return a non-200 status requiring retry"],"whenToPreferThis":"Use this endpoint whenever you need a deterministic, stateless, in-memory comparison of an x402 challenge resource URL against an expected resource URL before authorizing payment or accepting an agent delivery. Prefer it over manual string comparison when you need structured mismatch reasons, normalized evidence, and a versioned JSON audit trail. It is especially valuable in automated agent pipelines handling x402 payments where resource spoofing is a concern.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:34:41.920Z","isFirstParty":false,"canonicalSlug":"x402-resource-match-5737b723"}