{
  "openapi": "3.1.0",
  "info": {
    "title": "ClickBulk Public API",
    "version": "1.0.0",
    "description": "Public endpoints exposed by ClickBulk for license verification and integrations."
  },
  "servers": [
    { "url": "https://asoqknlreicidgqtheyf.supabase.co/functions/v1" }
  ],
  "paths": {
    "/license-verify": {
      "post": {
        "summary": "Verify a ClickBulk license key",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["key"],
                "properties": {
                  "key": { "type": "string", "description": "License key" },
                  "email": { "type": "string", "format": "email" }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "License status",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "active": { "type": "boolean" },
                    "plan": { "type": "string" },
                    "expires_at": { "type": "string", "format": "date-time", "nullable": true }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
