{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/converly-io/json-schema/converly-io-paginated-events-schema.json",
  "title": "PaginatedEvents",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/converly-io-events-api-openapi.yml#/components/schemas/PaginatedEvents",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Event"
      }
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    },
    "complete": {
      "type": "boolean"
    }
  },
  "required": [
    "data",
    "has_more",
    "next_cursor",
    "complete"
  ],
  "$defs": {
    "Event": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "`evt_` + opaque body. NOT the same format as other prefixed IDs — event bodies are pass-through from the delivery service, not base62-encoded UUIDs."
        },
        "site_key": {
          "type": "string"
        },
        "occurred_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "flow_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "flow_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "trigger": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": [
            "string",
            "null"
          ]
        },
        "actions": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": {}
          }
        }
      },
      "required": [
        "id",
        "site_key",
        "occurred_at",
        "flow_id",
        "flow_name",
        "trigger",
        "status",
        "actions"
      ],
      "additionalProperties": {},
      "description": "Read-only conversion event. REDACTED BY DEFAULT: visitor PII (IP, user agent, browser/ad-platform identifiers, captured user_data, request/response bodies) is removed, and get_event_detail-level responses expose coarse device, redacted paths, and PRESENCE-ONLY user_data flags. Full-fidelity fields are returned only to credentials holding the `events:read:pii` scope (first-party plugins / the dashboard) — the MCP surface is ALWAYS redacted. The extra fields under that scope are pass-through from the delivery service. See docs/PII-PLAN-FINAL.md."
    }
  }
}