{
  "openapi": "3.1.0",
  "info": {
    "title": "NyxHost Agent API",
    "version": "1.0.0",
    "description": "Open a no-KYC account, fund a balance, order a server. Bearer token, no dashboard."
  },
  "servers": [
    {
      "url": "https://nyx-host.xyz"
    }
  ],
  "paths": {
    "/api/agent/account": {
      "post": {
        "summary": "Create a machine account (accepts the AUP)",
        "responses": {
          "200": {
            "description": "Account created"
          }
        }
      }
    },
    "/api/agent/catalog": {
      "get": {
        "summary": "Live catalog",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/agent/topup": {
      "post": {
        "summary": "Top-up invoice or x402",
        "responses": {
          "200": {
            "description": "Invoice"
          }
        }
      }
    },
    "/api/agent/status": {
      "get": {
        "summary": "Invoice status",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  }
}