{"uid":"cap_pOAaK_Sq_ZeafPoJ8SZ-I","slug":"capi2-agent-commerce-x402-route-audit-c396e6d2","name":"CAPI2 Agent Commerce – x402 Route Audit","description":"Programmable authority checks and tamper-evident receipts for autonomous agents, sold through sustainable x402 commerce.","url":"https://capi2-agent-commerce.vandurmedries.workers.dev/v1/x402-route-audit","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"method":{"enum":["GET","POST"],"type":"string"}}},"responseSchema":{"type":"json","example":{"verdict":"ready","findings":[],"status_code":402,"x402_version":2,"payment_options":1}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.008","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.008/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_uEtYlC1W_7banj71vCcS8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.008","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs programmable authority checks and generates tamper-evident audit receipts for x402-protected routes, verifying whether a given URL and HTTP method are correctly gated behind x402 payment requirements.","exampleAgentPrompt":"Can you audit the x402 payment gating on https://api.example.com/premium-data for a GET request and tell me if it returns a 402 with valid payment options?","exampleUseCases":[{"title":"Verify x402 route before agent purchase","prompt":"Before my agent tries to pay and call https://api.someservice.com/data, can you audit that route using a GET request to confirm it's correctly returning a 402 with x402 payment options?"},{"title":"Compliance check for developer's own API","prompt":"I just deployed my x402-gated endpoint at https://myapi.dev/v1/reports — can you run an authority check on it as a POST request to make sure the 402 response and payment options are properly configured?"},{"title":"Debug missing payment wall on route","prompt":"My POST route at https://payments.myapp.io/api/generate isn't blocking unauthenticated agents correctly — can you audit it and show me the findings and verdict so I can see what's wrong with the x402 setup?"}],"resultDescription":"A JSON object containing a verdict (e.g. 'ready'), a list of findings (issues or observations), the HTTP status code returned by the audited route, the x402 protocol version detected, and the number of payment options advertised. This acts as a tamper-evident audit receipt for the route check.","failureModes":["Invalid or unreachable URL returns an error or empty findings","Unsupported HTTP method outside GET/POST causes schema validation failure","Route not implementing x402 may return unexpected verdict or non-402 status code","Network timeouts on the target URL result in inconclusive audit","Malformed URI input rejected by format validation"],"whenToPreferThis":"Choose this endpoint when you need to programmatically verify that a specific URL and HTTP method are correctly protected by x402 payment gating before an autonomous agent attempts to pay and call it. It is the right choice for pre-flight compliance checks, debugging payment wall misconfigurations, or generating tamper-evident audit receipts of route authority checks in agent-commerce workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:38:38.442Z","isFirstParty":false}