{
  "openapi": "3.1.0",
  "info": {
    "title": "The Black Ledger API",
    "version": "1.0.0",
    "description": "Daily capital intelligence for Night Ash mission budgets, route access, logistics, XAI network participation, and $XAI settlement readiness."
  },
  "servers": [
    {
      "url": "https://www.webgamegame.win"
    }
  ],
  "paths": {
    "/api/economy/v1/latest.json": {
      "get": {
        "operationId": "getBlackLedgerLatest",
        "summary": "Get the latest Black Ledger capital intelligence",
        "responses": {
          "200": {
            "description": "Latest Night Ash capital conditions",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/economy/v1/history.json": {
      "get": {
        "operationId": "getBlackLedgerHistory",
        "summary": "List daily Black Ledger snapshots",
        "responses": {
          "200": {
            "description": "Snapshot history",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/economy/v1/archive/{date}.json": {
      "get": {
        "operationId": "getBlackLedgerSnapshot",
        "summary": "Get one dated snapshot",
        "parameters": [
          {
            "name": "date",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Dated snapshot",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Unknown date"
          }
        }
      }
    }
  }
}
