{"uid":"cap_C7hbpUGRG7afw6XuGK3dh","slug":"x402-payment-challenge-sanity-checker-1f396025","name":"x402 Payment Challenge Sanity Checker","description":"Inspect one supplied x402-v2 exact-payment challenge against an explicit expected HTTPS resource, EVM CAIP-2 network, asset, payee and maximum price. Checks both URL declarations, structure and payment-policy fields only; no live probe, payment, facilitator verification or server-authenticity claim.","url":"https://www.mahastrategies.com/api/v1/micro/x402-challenge-sanity?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["dataClass","expected","challenge"],"properties":{"expected":{"type":"object"},"challenge":{"type":"object"},"dataClass":{"enum":["public","synthetic"],"type":"string"}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["version","offerId","amountBaseUnits","inputDigest","result","boundaries","receiptDigest"],"properties":{"result":{"type":"object"},"offerId":{"enum":["x402-challenge-sanity"],"type":"string"},"version":{"enum":["maha-microproducts/0.1"],"type":"string"},"boundaries":{"type":"array","maxItems":128,"minItems":0},"inputDigest":{"type":"string","maxLength":71},"receiptDigest":{"type":"string","maxLength":71},"amountBaseUnits":{"enum":["3500"],"type":"string"}},"additionalProperties":false}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0035","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.0035/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0035","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0035","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_gR1PDWrTHgNAKOZ4y8vqM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0035","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates the structure and policy fields of an x402-v2 exact-payment challenge against caller-supplied expected values for URL, EVM network, asset, payee, and maximum price — without making live requests or payments.","exampleAgentPrompt":"Can you sanity-check this x402-v2 payment challenge to make sure the payee, CAIP-2 network, asset, and price all match what I expect before I authorize anything — no live payment, just a structural check?","exampleUseCases":[{"title":"Pre-payment challenge verification","prompt":"Before my agent pays this x402 challenge, check that the payee address, EVM network (eip155:8453), asset, and max price of 0.01 USDC all match what's declared in the challenge object — don't actually pay anything, just validate the fields."},{"title":"Automated x402 policy audit","prompt":"I'm building a pipeline that receives x402 payment challenges from various APIs. Can you inspect this challenge and confirm that the URL declaration, network, and payment policy fields match my expected values for the Base mainnet USDC payee?"},{"title":"Security check before agent payment authorization","prompt":"My AI agent just received an x402-v2 challenge claiming to require payment to a specific payee on eip155:1 in USDC. Can you validate the challenge structure and policy fields against my expected resource URL and payee to make sure nothing looks off before I allow the payment?"}],"resultDescription":"Returns a structured result object containing a pass/fail validation outcome, a list of boundary violations (if any), the offer ID ('x402-challenge-sanity'), input and receipt digests for audit purposes, and the amount in base units (3500). No live network probe, payment, or facilitator verification is performed.","failureModes":["Missing required fields in challenge or expected object returns a validation error","Mismatched URL, payee, network, or asset causes boundary violations in the result","Malformed CAIP-2 network identifier may cause parsing failure","Invalid or non-HTTPS resource URL rejected at structure check","Schema mismatch (wrong bodyType or method) returns HTTP-level error","dataClass enum value outside 'public' or 'synthetic' causes rejection"],"whenToPreferThis":"Use this endpoint when you need a fast, offline structural check of an x402-v2 payment challenge before authorizing payment — particularly when you want to verify payee, network, asset, and price policy fields match your expectations without incurring any live network request, payment, or facilitator lookup. Prefer this over manual parsing when building agents that must validate x402 headers programmatically and need an auditable digest trail.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T06:52:22.444Z","isFirstParty":false,"canonicalSlug":"x402-payment-challenge-sanity-checker-1f396025"}