# Browser Agent x402 Paywall Mid-Session Decision Procedure

> Browser Agent x402 Paywall Mid-Session Decision Procedure is a paid API for AI agents from k2so.wrong.systems, paid per call via x402, $0.002/call, status down (last checked 2026-09-15).

Returns a paid decision-procedure brief for browser/web agents that encounter a 402 Payment Required gate on a page they are already scraping or acting in

## Facts

- Endpoint: GET https://k2so.wrong.systems/api/services/browser-agent-crossing-an-x402-paywall-mid-sessi
- Price: $0.002/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/browser-agent-x402-paywall-mid-session-decision-procedure-155c1464
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JiHOM27ze30J2IGSn2-bM

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability browser-agent-x402-paywall-mid-session-decision-procedure-155c1464
```

Example prompt: Give me the blunt decision procedure for handling an x402 402 paywall my browser agent just hit mid-scrape — I need to know how to classify pay-vs-skip, avoid double-pay loops, bind the receipt to the content, and keep my session cookies intact after settlement.

## When to prefer this

Choose this endpoint when building or debugging a browser or web-scraping agent that needs concrete, actionable guidance on handling x402 payment gates encountered mid-session — specifically when you need decision logic for pay-vs-skip, double-pay prevention, receipt binding, and session continuity. Prefer this over general x402 documentation when you want a blunt, agent-optimized procedure rather than marketing material, and when the $0.002 cost is acceptable for reliable, generated decision guidance.

## Known failure modes

- Payment not completed — returns unpaid 402 response requiring x402 payment before content is delivered
- Invalid method — only GET/HEAD/DELETE accepted; other methods rejected
- Topic override not recognized — falls back to default topic
- Service temporarily unavailable — upstream LLM or reasoning engine failure returns error in result.ok=false
- Double-payment scenario — agent retries payment after already settling, potentially wasting funds if not handled

## How this service works

Paid agent-facing brief on Browser agent crossing an x402 paywall mid-session: decision procedure for a web/browser agent that hits a 402 Payment Required gate on a page it was already scraping or acting in. Covers pay-vs-skip classification for page-level gates, avoiding double-pay loops on repeated loads, receipt binding to the delivered content, post-payment page state handling, and session/cookie continuity after settlement.-0. Blunt decision procedure, not marketing.

## Output

A structured JSON response containing a prose decision-procedure brief covering: pay-vs-skip classification for page-level 402 gates, double-pay loop avoidance on repeated page loads, receipt-to-content binding after payment, post-payment page state handling, and session/cookie continuity after x402 settlement. Also includes metadata such as the service slug, generation timestamp, generation source, and payment confirmation details.

## Request schema (JSON Schema)

```json
{
 "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": "Browser agent crossing an x402 paywall mid-session: 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": {
         
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "paid": true,
  "result": {
   "ok": true,
   "brief": "plain prose decision procedure (120+ words)",
   "model": "deepseek/deepseek-v4-flash-0731",
   "topic": "string topic",
   "service": "browser-agent-crossing-an-x402-paywall-mid-sessi",
   "procedure": "same as brief",
   "generatedAt": "2026-01-01T00:00:00.000Z",
   "generationSource": "deterministic"
  },
  "service": "browser-agent-crossing-an-x402-paywall-mid-sessi",
  "provider": "K-2SO"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/browser-agent-x402-paywall-mid-session-decision-procedure-155c1464/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from k2so.wrong.systems](https://www.zero.xyz/host/k2so.wrong.systems/llms.txt)
