{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/owlsinsight-com/json-schema/owlsinsight-com-create-webhook-params-schema.json",
  "title": "CreateWebhookParams",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/owlsinsight-com-webhooks-api-openapi.yml#/components/schemas/CreateWebhookParams",
  "properties": {
    "description": {
      "description": "Up to 200 characters.",
      "type": [
        "string",
        "null"
      ]
    },
    "event_types": {
      "description": "One or more event types. A type that is not open yet is refused with a 400 (`event_type_unavailable`).",
      "items": {
        "$ref": "#/$defs/WebhookSubscribableEventType"
      },
      "type": "array"
    },
    "filters": {
      "$ref": "#/$defs/WebhookFiltersInput"
    },
    "url": {
      "description": "https on the default port with a public hostname. IP addresses and private or internal hosts are refused.",
      "type": "string"
    }
  },
  "type": "object",
  "x-owls-required": [
    "url",
    "event_types"
  ],
  "$defs": {
    "WebhookEvFoundFiltersInput": {
      "description": "`ev.found` filters as sent: an omitted field keeps its default (create) or its stored value (update).",
      "properties": {
        "kinds": {
          "items": {
            "$ref": "#/$defs/WebhookEvKind"
          },
          "type": "array"
        },
        "min_ev": {
          "description": "1, 2, 3, 5 or 8 percent.",
          "format": "double",
          "type": "number"
        },
        "venues": {
          "description": "Keys the EV board scores; a key that can never produce an event is refused with a 400.",
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "WebhookEvKind": {
      "description": "`ev.found` price kinds: `book` (a sportsbook) or `venue` (an exchange or prediction market).",
      "type": "string",
      "x-extensible-enum": [
        "book",
        "venue"
      ]
    },
    "WebhookFiltersInput": {
      "description": "Filters as sent. On create, an omitted field takes its default. On update they merge\ninto the stored filters: a section you send (`line_moved`, `ev_found`) changes only the\nfields you send, and `sports` replaces the list (`[]` means every covered sport). A sport\nthat one of the endpoint's event types does not cover is refused with a 400\n(`sport_not_covered`).",
      "properties": {
        "ev_found": {
          "$ref": "#/$defs/WebhookEvFoundFiltersInput"
        },
        "line_moved": {
          "$ref": "#/$defs/WebhookLineMovedFiltersInput"
        },
        "sports": {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "WebhookLineMarket": {
      "description": "The markets `line.moved` watches.",
      "type": "string",
      "x-extensible-enum": [
        "moneyline",
        "spread",
        "total"
      ]
    },
    "WebhookLineMovedFiltersInput": {
      "description": "`line.moved` filters as sent: an omitted field keeps its default (create) or its stored value (update).",
      "properties": {
        "markets": {
          "items": {
            "$ref": "#/$defs/WebhookLineMarket"
          },
          "type": "array"
        },
        "point_step": {
          "description": "0.5, 1, 1.5, 2 or 3.",
          "format": "double",
          "type": "number"
        },
        "price_step_pp": {
          "description": "0.5, 1, 2, 3 or 5 percentage points.",
          "format": "double",
          "type": "number"
        }
      },
      "type": "object"
    },
    "WebhookSubscribableEventType": {
      "description": "Event types an endpoint can subscribe to.",
      "type": "string",
      "x-extensible-enum": [
        "ev.found",
        "game.final",
        "game.started",
        "line.moved",
        "props.graded"
      ]
    }
  }
}