{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/foresea-ink/json-schema/foresea-ink-webhook-subscribe-request-schema.json",
  "title": "WebhookSubscribeRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/foresea-ink-webhooks-api-openapi.yml#/components/schemas/WebhookSubscribeRequest",
  "properties": {
    "url": {
      "type": "string",
      "maxLength": 500,
      "title": "Url",
      "description": "Destination webhook callback URL (https/http)"
    },
    "events": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Events",
      "description": "Events to subscribe to: 'edge_alert', 'market_resolution', 'new_market', 'all'"
    },
    "min_edge": {
      "type": "number",
      "maximum": 1.0,
      "minimum": 0.0,
      "title": "Min Edge",
      "description": "Minimum edge threshold for edge_alert events",
      "default": 0.08
    }
  },
  "type": "object",
  "required": [
    "url"
  ]
}