{
  "openapi": "3.1.0",
  "info": {
    "title": "Toonimo Marketing Site Public API",
    "version": "1.0.0",
    "description": "Small public surface on www.toonimo.com for health checks and marketing lead capture."
  },
  "servers": [{ "url": "https://www.toonimo.com" }],
  "paths": {
    "/api/health": {
      "get": {
        "operationId": "getHealth",
        "summary": "Liveness check",
        "responses": {
          "200": {
            "description": "Service is up",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": { "type": "string", "example": "ok" }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/leads": {
      "post": {
        "operationId": "submitLead",
        "summary": "Submit a demo or contact lead",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["email"],
                "properties": {
                  "email": { "type": "string", "format": "email" },
                  "name": { "type": "string" },
                  "company": { "type": "string" },
                  "phone": { "type": "string" },
                  "country": { "type": "string" },
                  "message": { "type": "string" },
                  "source": { "type": "string", "example": "contact" }
                }
              }
            }
          }
        },
        "responses": {
          "201": { "description": "Lead accepted" },
          "400": { "description": "Validation error" }
        }
      }
    }
  }
}
