{
  "openapi": "3.1.0",
  "info": {
    "title": "Seline Public API",
    "version": "1.0.0"
  },
  "servers": [{ "url": "https://api.seline.com/api/v1" }],
  "paths": {
    "/projects": {
      "post": {
        "summary": "List projects accessible with the API token",
        "security": [{ "bearerAuth": [] }]
      }
    },
    "/data": {
      "post": {
        "summary": "Analytics aggregates by date",
        "security": [{ "bearerAuth": [] }]
      }
    },
    "/charges": {
      "post": {
        "summary": "Charges by date",
        "security": [{ "bearerAuth": [] }]
      }
    },
    "/stats": {
      "post": {
        "summary": "Top visitors and related stats",
        "security": [{ "bearerAuth": [] }]
      }
    },
    "/visit-metrics": {
      "post": {
        "summary": "Visit metrics",
        "security": [{ "bearerAuth": [] }]
      }
    },
    "/custom-events": {
      "post": {
        "summary": "Custom events",
        "security": [{ "bearerAuth": [] }]
      }
    },
    "/pages": {
      "post": {
        "summary": "Top, entry, or exit pages",
        "security": [{ "bearerAuth": [] }]
      }
    },
    "/property-values": {
      "post": {
        "summary": "Distinct values for a property",
        "security": [{ "bearerAuth": [] }]
      }
    },
    "/event-data": {
      "post": {
        "summary": "Custom event fields and top values",
        "security": [{ "bearerAuth": [] }]
      }
    },
    "/field-values": {
      "post": {
        "summary": "Values for a custom event field",
        "security": [{ "bearerAuth": [] }]
      }
    },
    "/events": {
      "post": {
        "summary": "Raw events with filters and pagination",
        "security": [{ "bearerAuth": [] }]
      }
    },
    "/funnel": {
      "post": {
        "summary": "Funnel analysis",
        "security": [{ "bearerAuth": [] }]
      }
    },
    "/visitor": {
      "post": {
        "summary": "Find a visitor by shortId or visitorId",
        "security": [{ "bearerAuth": [] }]
      }
    },
    "/visitors": {
      "post": {
        "summary": "List visitors with filters",
        "security": [{ "bearerAuth": [] }]
      }
    },
    "/visitor-events": {
      "post": {
        "summary": "Events for a specific visitor",
        "security": [{ "bearerAuth": [] }]
      }
    },
    "/most-active-visitors": {
      "post": {
        "summary": "Visitors ranked by event count",
        "security": [{ "bearerAuth": [] }]
      }
    },
    "/visitor-insight": {
      "post": {
        "summary": "AI-generated insight for a visitor",
        "security": [{ "bearerAuth": [] }]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "sln_<token>"
      }
    }
  }
}
