{
  "openapi": "3.1.0",
  "info": {
    "title": "CoolPopup Machine Payments Demo API",
    "version": "1.0.0",
    "description": "Minimal machine-payment discovery surface for agent readiness checks."
  },
  "servers": [
    {
      "url": "https://www.coolpopup.com",
      "description": "CoolPopup public origin"
    }
  ],
  "x-service-info": {
    "categories": [
      "developer-tools",
      "media"
    ],
    "docs": {
      "homepage": "https://www.coolpopup.com",
      "apiReference": "https://dash.coolpopup.com/api-documentation",
      "llms": "https://www.coolpopup.com/ai.json"
    }
  },
  "paths": {
    "/api/mpp-demo": {
      "get": {
        "summary": "MPP discovery demo endpoint",
        "description": "Demo payable endpoint advertised through OpenAPI payment discovery.",
        "x-payment-info": {
          "intent": "charge",
          "method": "tempo",
          "amount": "1000",
          "currency": "USD",
          "description": "Demo per-request payment requirement for machine clients."
        },
        "responses": {
          "200": {
            "description": "Successful response after payment"
          },
          "402": {
            "description": "Payment Required"
          }
        }
      }
    },
    "/api/x402-demo": {
      "get": {
        "summary": "x402 demo endpoint",
        "description": "Demo payable endpoint that returns an x402-compatible 402 challenge.",
        "x-payment-info": {
          "intent": "charge",
          "method": "tempo",
          "amount": "1000",
          "currency": "USD",
          "description": "Demo x402 payment challenge for agent-native HTTP payment detection."
        },
        "responses": {
          "200": {
            "description": "Successful response after payment"
          },
          "402": {
            "description": "Payment Required"
          }
        }
      }
    }
  }
}