{
  "openapi": "3.0.3",
  "info": {
    "title": "ESTR Protocol API",
    "version": "0.4.0",
    "description": "Infrastructure-first API for ESTR Protocol wallet, token, treasury and TRON resource visibility."
  },
  "servers": [
    {
      "url": "https://api.xn--str-ima.eu"
    },
    {
      "url": "https://mcp.xn--str-ima.eu"
    }
  ],
  "paths": {
    "/health": {
      "get": {
        "summary": "Health check",
        "responses": {
          "200": {
            "description": "API is online"
          }
        }
      }
    },
    "/version": {
      "get": {
        "summary": "Protocol version",
        "responses": {
          "200": {
            "description": "Current protocol version"
          }
        }
      }
    },
    "/status": {
      "get": {
        "summary": "Protocol status",
        "responses": {
          "200": {
            "description": "Returns API, MCP, network and domain status"
          }
        }
      }
    },
    "/manifest": {
      "get": {
        "summary": "Protocol manifest",
        "responses": {
          "200": {
            "description": "Returns public protocol metadata and endpoints"
          }
        }
      }
    },
    "/wallet": {
      "get": {
        "summary": "Configured TRON wallet",
        "responses": {
          "200": {
            "description": "Returns wallet address and network"
          }
        }
      }
    },
    "/token": {
      "get": {
        "summary": "ESTR token metadata",
        "responses": {
          "200": {
            "description": "Returns planned token configuration"
          }
        }
      }
    },
    "/balance/trx": {
      "get": {
        "summary": "TRX balance",
        "responses": {
          "200": {
            "description": "Returns wallet TRX balance"
          }
        }
      }
    },
    "/balance/usdt": {
      "get": {
        "summary": "USDT TRC20 balance",
        "responses": {
          "200": {
            "description": "Returns wallet USDT TRC20 balance"
          }
        }
      }
    },
    "/resources": {
      "get": {
        "summary": "TRON resources",
        "responses": {
          "200": {
            "description": "Returns Energy and bandwidth information"
          }
        }
      }
    }
  }
}
