{
  "openapi": "3.1.0",
  "info": {
    "title": "The Debt Clock API",
    "version": "1.0.0",
    "description": "Confirmed and historical U.S. national debt data sourced from U.S. Treasury Debt to the Penny."
  },
  "servers": [
    {
      "url": "https://thedebtclock.com"
    }
  ],
  "paths": {
    "/api/current.json": {
      "get": {
        "summary": "Current confirmed debt and derived statistics",
        "responses": {
          "200": {
            "description": "Current debt snapshot",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/history.json": {
      "get": {
        "summary": "Recent, annual and administration-period debt records",
        "responses": {
          "200": {
            "description": "Historical debt snapshot",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/history.csv": {
      "get": {
        "summary": "Annual debt history as CSV",
        "responses": {
          "200": {
            "description": "CSV download",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}