{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/trackmcp/main/json-schema/trackmcp-post-api-v1-analytics-request-schema.json",
  "title": "PostApiV1AnalyticsRequest",
  "x-generated": "2026-10-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/trackmcp-openapi-generated.yml#/components/schemas/PostApiV1AnalyticsRequest",
  "type": "object",
  "properties": {
    "events": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "schema_version": {
            "type": "string"
          },
          "event_id": {
            "type": "string"
          },
          "event_type": {
            "type": "string"
          },
          "observation_source": {
            "type": "string"
          },
          "service": {
            "type": "string"
          },
          "environment": {
            "type": "string"
          },
          "tool_name": {
            "type": "string"
          },
          "started_at": {
            "type": "string",
            "format": "date-time"
          },
          "duration_ms": {
            "type": "integer"
          },
          "success": {
            "type": "boolean"
          },
          "is_error": {
            "type": "boolean"
          },
          "payload_policy": {
            "type": "string"
          },
          "payload": {
            "type": "object",
            "properties": {
              "args": {
                "type": "object"
              }
            }
          }
        }
      }
    }
  }
}