{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nautilinks-co/json-schema/nautilinks-co-create-webhook-request-schema.json",
  "title": "CreateWebhookRequest",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nautilinks-co-openapi.json#/components/schemas/CreateWebhookRequest",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "url",
    "events"
  ],
  "properties": {
    "url": {
      "type": "string",
      "format": "uri",
      "maxLength": 2000,
      "description": "Public HTTPS URL; private, loopback, and unresolved hosts are rejected."
    },
    "events": {
      "type": "array",
      "minItems": 1,
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/WebhookEvent"
      }
    }
  },
  "$defs": {
    "WebhookEvent": {
      "type": "string",
      "enum": [
        "order.accepted",
        "order.published",
        "order.cancelled"
      ]
    }
  }
}