{"uid":"cap_3SDbkYT6l2TXRLwF8Sdl0","slug":"blockchain-money-map-x402-cache-leakage-guard-6cac5bb8","name":"Blockchain Money Map x402 Cache Leakage Guard","description":"Checks caller-supplied HTTP 402 cache and paid-route facts for leakage risk.","url":"https://api.blockchainmoneymap.com/api/x402/x402-cache-leakage-guard?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mode":{"enum":["audit"]},"facts":{"type":"object","required":["route_path","status_code","cache_control","payment_required_present"],"properties":{"headers":{"type":"object","properties":{"x-version":{"type":"string","maxLength":80},"x-provider":{"type":"string","maxLength":120},"content_type":{"type":"string","maxLength":120},"x-request-id":{"type":"string","maxLength":160},"cache-control":{"type":"string","maxLength":160},"content-length":{"type":"string","maxLength":40}},"maxProperties":10,"additionalProperties":false},"route_path":{"type":"string","maxLength":500},"status_code":{"type":"number"},"cache_control":{"type":"string","maxLength":500},"resource_label":{"type":"string","maxLength":500},"cdn_cache_present":{"type":"boolean"},"free_route_present":{"type":"boolean"},"payment_required_present":{"type":"boolean"},"paid_content_cached_present":{"type":"boolean"}},"additionalProperties":false},"policy":{"type":"object","additionalProperties":true},"reference_facts":{"type":"object","required":["route_path","status_code","cache_control","payment_required_present"],"properties":{"headers":{"type":"object","properties":{"x-version":{"type":"string","maxLength":80},"x-provider":{"type":"string","maxLength":120},"content_type":{"type":"string","maxLength":120},"x-request-id":{"type":"string","maxLength":160},"cache-control":{"type":"string","maxLength":160},"content-length":{"type":"string","maxLength":40}},"maxProperties":10,"additionalProperties":false},"route_path":{"type":"string","maxLength":500},"status_code":{"type":"number"},"cache_control":{"type":"string","maxLength":500},"resource_label":{"type":"string","maxLength":500},"cdn_cache_present":{"type":"boolean"},"free_route_present":{"type":"boolean"},"payment_required_present":{"type":"boolean"},"paid_content_cached_present":{"type":"boolean"}},"additionalProperties":false}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7atanTbwzYOG50lniVat5","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Audits an x402-gated API route for cache misconfiguration that could allow paid content to leak to unpaid users via CDN or HTTP caching.","exampleAgentPrompt":"Run a cache leakage audit on my x402 route '/api/reports/premium' — it returned status 200, the cache-control is 'public, max-age=3600', payment_required is false, and the CDN cache is present with paid content already cached. Compare it against a reference where cache-control was 'no-store' and paid content was not cached.","exampleUseCases":[{"title":"Detect CDN cache bypass on paid route","prompt":"Audit my x402 payment-gated route '/api/blockchain/wallet-map' for cache leakage — the current response has status 200, cache-control set to 'public, max-age=600', payment_required is false, and cdn_cache_present is true with paid_content_cached also true. Use a reference where cache-control was 'no-store, no-cache' and paid content was not cached."},{"title":"Verify correct cache headers after deployment","prompt":"After my latest deploy I want to confirm my x402 route '/api/x402/premium-report' isn't leaking — status is 402, cache-control is 'no-store', payment_required is true, cdn_cache_present is false. Check this against the same reference config to make sure nothing regressed."},{"title":"Compliance check for x402 route monetization audit","prompt":"I need to run a formal cache leakage compliance audit on route '/api/v2/defi-map' — current facts are status 200, cache-control 'private, no-cache', payment_required true, cdn_cache_present false, paid_content_cached false. Reference facts are the same. Flag any policy issues."}],"resultDescription":"Returns a JSON audit result indicating whether the specified x402 route has cache misconfiguration that could expose paid content to unpaid users, including comparison against a reference configuration, specific policy violations detected, and an overall compliance verdict.","failureModes":["Missing required fields (route_path, status_code, cache_control, payment_required_present) returns validation error","Invalid mode value (not 'audit') returns schema rejection","Conflicting facts (e.g. free_route_present and paid_content_cached_present both true) may produce ambiguous audit output","Payment failure via x402 protocol returns 402 with payment details","Malformed headers object exceeding maxProperties returns schema error"],"whenToPreferThis":"Use this endpoint when you need to specifically audit x402-monetized API routes for HTTP/CDN cache misconfiguration that could allow paid content to be served without payment. It is purpose-built for the x402 payment protocol context, making it more targeted than generic HTTP header validators or security scanners when the concern is cache leakage on blockchain-payment-gated endpoints.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T00:32:46.824Z","isFirstParty":false,"canonicalSlug":"blockchain-money-map-x402-cache-leakage-guard-6cac5bb8"}