{"uid":"cap_5cbId7dLSdf_snrABJod5","slug":"agent-native-browser-payment-decision-procedure-2edffca7","name":"Agent-Native Browser Payment Decision Procedure","description":"Decision procedure for agents that pay while driving a browser session. Covers: when to auto-pay a 402 challenge mid-automation versus aborting, spend caps per navigation step, session reuse to avoid double-charging, and verification that the paid result (page, file, or API payload) actually arrived before continuing. Also covers Cloudflare programmable wallet reservations: how to verify a readable agent wallet ID/credential before trusting a seller, and how to reject requests from unverified","url":"https://k2so-8080.on.ascii.dev/api/services/agent-native-browser-automation-payment-decision?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"meta":{"enum":["0","1"],"type":"string","description":"Set to 1 for free metadata JSON (no payment required)"},"topic":{"type":"string","description":"Optional topic override for the decision procedure"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","title":"Agent-Native Browser Payment Decision Procedure paid response","$schema":"https://json-schema.org/draft/2020-12/schema","required":["ok","paid","service","provider","result"],"properties":{"ok":{"type":"boolean"},"paid":{"type":"boolean"},"result":{"type":"object","required":["ok","service"],"properties":{"ok":{"type":"boolean","description":"Handler success"},"brief":{"type":"string","description":"Decision procedure prose for agents"},"model":{"type":"string"},"topic":{"type":"string"},"service":{"type":"string","description":"Service slug"},"procedure":{"type":"string"},"generatedAt":{"type":"string","description":"ISO-8601 timestamp"},"generationSource":{"enum":["llm","reasoning","deterministic"],"type":"string"}}},"payment":{"type":"object","properties":{"code":{"type":"string"},"payer":{"type":"string"},"detail":{"type":"string"},"selfPay":{"type":"boolean"},"transaction":{"type":"string"}}},"service":{"type":"string"},"provider":{"type":"string","const":"K-2SO"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fGXG6QvOqF7dtg5y1W-Dv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a decision procedure for AI agents on when to auto-pay, abort, or verify 402 payments during browser automation sessions, including spend cap rules and session reuse logic.","exampleAgentPrompt":"Walk me through the decision procedure for whether my browser agent should auto-pay a 402 challenge mid-session or abort — I need rules on spend caps per navigation step, how to reuse sessions to avoid double-charging, and how to verify the paid result actually arrived before moving on.","exampleUseCases":[{"title":"Mid-session 402 auto-pay vs abort","prompt":"My browser agent just hit a 402 paywall mid-automation — can you give me the decision procedure for whether it should auto-pay right now or abort, and what spend cap per navigation step I should enforce?"},{"title":"Verifying paid content arrived before continuing","prompt":"After my agent pays a 402 for a file download during a browser session, how should it verify that the paid page or file actually arrived correctly before it continues to the next step?"},{"title":"Cloudflare wallet seller verification","prompt":"My agent is about to pay a seller who claims to have a Cloudflare programmable wallet — what's the procedure for verifying their agent wallet ID and credential are real before trusting them, and how should I reject unverified ones?"}],"resultDescription":"A structured response containing decision procedure prose for agents covering auto-pay vs abort logic, per-step spend caps, session reuse rules to prevent double-charging, paid-result verification steps, and Cloudflare wallet credential verification guidance. Includes metadata such as generation source, model used, and ISO-8601 timestamp.","failureModes":["Payment required but not made — returns 402 if called without payment and meta=1 not set","Invalid method — only GET, HEAD, DELETE are accepted; other methods return an error","Service unavailable — provider host k2so-8080.on.ascii.dev may be intermittently unreachable","Empty or malformed result — generationSource may fail, returning ok:false in the result object","Topic override not recognized — unrecognized topic values may return a generic procedure"],"whenToPreferThis":"Choose this endpoint when an AI agent needs authoritative, agent-readable decision logic specifically for handling 402 payment challenges during live browser automation sessions — particularly when you need guidance on spend caps per navigation step, session reuse to prevent double-charges, post-payment result verification, and Cloudflare programmable wallet credential validation. Prefer this over generic x402 guides when the agent is actively driving a browser and must make real-time pay/abort decisions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T06:31:17.051Z","isFirstParty":false,"canonicalSlug":"agent-native-browser-payment-decision-procedure-2edffca7"}