{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/seminara-online/json-schema/seminara-online-webhook-subscription-schema.json",
  "title": "WebhookSubscription",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/seminara-online-openapi.json#/components/schemas/WebhookSubscription",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Unique subscription UUID"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Destination HTTPS endpoint for event delivery"
    },
    "events": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Subscribed event topics (session.completed, attendee.cta_clicked, lead.captured)"
    },
    "is_active": {
      "type": "boolean",
      "description": "Whether webhook delivery is active"
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "Optional human-readable label (e.g. HubSpot CRM Sync)"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}