{
  "openapi": "3.0.3",
  "info": {
    "title": "Cometly Public API",
    "description": "Public API for Cometly - Marketing Analytics Platform",
    "version": "1.0.0",
    "contact": {
      "name": "Cometly Support",
      "url": "https://cometly.com"
    }
  },
  "servers": [
    {
      "url": "https://app.cometly.com/api",
      "description": "Production server"
    },
    {
      "url": "http://localhost/api",
      "description": "Development server"
    }
  ],
  "tags": [
    {
      "name": "Authentication",
      "description": "Authentication and API key management"
    },
    {
      "name": "Events",
      "description": "Event tracking and management"
    },
    {
      "name": "Analytics",
      "description": "Analytics data and reports"
    }
  ],
  "paths": {
    "/example": {
      "get": {
        "tags": [
          "Example"
        ],
        "summary": "Example endpoint",
        "description": "This is an example endpoint. Replace with your actual API endpoints.",
        "operationId": "getExample",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "data": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKeyAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "API key for authentication"
      },
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": false
          },
          "message": {
            "type": "string",
            "example": "Error message"
          },
          "errors": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}