{
    "service": "Garage Billing API",
    "version": "2.0",
    "status": "running",
    "timestamp": "2026-09-18 21:24:12",
    "endpoints": {
        "POST \/ingest": {
            "description": "Ingest HAProxy traffic data from Alloy",
            "payload": {
                "timestamp": "string (Y-m-d H:i:s)",
                "proxy_name": "string (e.g., garage-proxy-hdd-1)",
                "url": "string (S3 URL)",
                "bytes_in": "integer",
                "bytes_out": "integer"
            }
        },
        "GET \/export": {
            "description": "Export aggregated traffic statistics from the daily rollup",
            "query_params": {
                "days": "optional, window length in calendar days ending today (default 30, max 1095)",
                "from": "optional, YYYY-MM-DD inclusive; overrides days",
                "to": "optional, YYYY-MM-DD inclusive; overrides days",
                "storage_type": "optional (HDD or SSD)",
                "proxy_name": "optional",
                "bucket": "optional",
                "group_by": "optional (bucket|proxy|access_type|day), default bucket"
            }
        },
        "GET \/health": {
            "description": "Health check endpoint"
        }
    }
}