{
  "openapi": "3.1.0",
  "info": {
    "title": "biptest.com priced routes",
    "version": "1.0.0",
    "description": "HTTP endpoints on biptest.com that accept Bippsi Credits (Bips) via HTTP 402 Payment Required. Parent platform documentation at https://bippsi.com/api-docs.",
    "contact": { "name": "Bippsi", "url": "https://bippsi.com/contact" },
    "license": { "name": "Demo use (see /AGENTS.md)", "url": "https://biptest.com/AGENTS.md" }
  },
  "servers": [{ "url": "https://biptest.com", "description": "Public demo" }],
  "externalDocs": { "description": "Bippsi API reference + MCP", "url": "https://bippsi.com/api-docs" },
  "security": [{ "bearerAuth": [] }],
  "paths": {
    "/": { "get": { "summary": "Homepage directory", "responses": { "200": { "description": "OK" } } } },
    "/pricing": {
      "get": {
        "summary": "Pricing page (1 Bip)",
        "responses": {
          "402": { "description": "Payment required", "headers": { "Bippsi-Credits-Price": { "schema": { "type": "integer", "example": 1 } } } },
          "200": { "description": "Paid content served" }
        }
      }
    },
    "/contact": {
      "post": {
        "summary": "Submit contact form (2 Bips)",
        "responses": { "402": { "description": "Payment required (price=2)" }, "200": { "description": "Submission accepted" } }
      }
    },
    "/buy": {
      "post": {
        "summary": "Complete buy action (3 Bips)",
        "responses": { "402": { "description": "Payment required (price=3)" }, "200": { "description": "Order placed (simulated)" } }
      }
    },
    "/articles/whitepaper": {
      "get": {
        "summary": "Whitepaper article (5 Bips)",
        "responses": { "402": { "description": "Payment required (price=5)" }, "200": { "description": "Article body" } }
      }
    },
    "/downloads/whitepaper": {
      "get": {
        "summary": "Whitepaper PDF download (10 Bips)",
        "responses": { "402": { "description": "Payment required (price=10)" }, "200": { "description": "PDF binary" } }
      }
    },
    "/premium-report": {
      "get": {
        "summary": "Premium industry report (2000 Bips — exceeds sandbox)",
        "responses": {
          "402": { "description": "Payment required (price=2000). Body may indicate insufficient_balance when agent sandbox cannot cover the price." }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Bippsi API key: demo_* (sandbox) or bas_* (production). Paired with a `Payment: bips N` header to satisfy the paywall."
      }
    }
  }
}
