{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/feedback1-ai/json-schema/feedback1-ai-webhook-create-schema.json",
  "title": "WebhookCreate",
  "description": "Request to create a new webhook",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/feedback1-ai-webhooks-api-openapi.yml#/components/schemas/WebhookCreate",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 100,
      "minLength": 1,
      "title": "Name",
      "description": "Name for the webhook"
    },
    "url": {
      "type": "string",
      "maxLength": 2083,
      "minLength": 1,
      "format": "uri",
      "title": "Url",
      "description": "URL to send webhook events to"
    },
    "events": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "minItems": 1,
      "title": "Events",
      "description": "List of events to subscribe to"
    },
    "product_ids": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Product Ids",
      "description": "Product IDs to filter events (null = all products)"
    }
  },
  "type": "object",
  "required": [
    "name",
    "url",
    "events"
  ]
}