{
  "openapi": "3.1.0",
  "info": {
    "title": "1kit.ai Backend API",
    "version": "1.0.0",
    "description": "1kit.ai Backend API with Scalar Documentation. Supports large uploads up to 4GB and unrestricted HTTP verbs."
  },
  "servers": [
    {
      "url": "https://api.1kit.ai",
      "description": "Production API Server"
    }
  ],
  "paths": {
    "/health": {
      "get": {
        "summary": "Health Check",
        "description": "Returns operational status of the 1kit.ai backend API.",
        "responses": {
          "200": {
            "description": "Service is healthy",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": { "type": "string", "example": "ok" },
                    "timestamp": { "type": "string", "example": "2026-11-10T10:00:00Z" }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/upload": {
      "post": {
        "summary": "Upload File",
        "description": "Upload endpoint supporting large files up to 4GB.",
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary",
                    "description": "The file payload (up to 4GB allowed by IIS)"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Upload received successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "uploaded": { "type": "boolean", "example": true },
                    "size": { "type": "integer", "example": 1048576 }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
