{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cpz-lab-com/json-schema/cpz-lab-com-webhook-create-schema.json",
  "title": "WebhookCreate",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cpz-lab-com-openapi.yml#/components/schemas/WebhookCreate",
  "type": "object",
  "required": [
    "url",
    "events"
  ],
  "properties": {
    "url": {
      "type": "string",
      "format": "uri"
    },
    "events": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "order.placed",
          "order.filled",
          "strategy.executed",
          "backtest.completed",
          "risk.alert",
          "news.breaking"
        ]
      }
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "active": {
      "type": "boolean",
      "default": true
    }
  }
}