{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/docupanda/json-schema/docupanda-create-webhook-endpoint-request-schema.json",
  "title": "CreateWebhookEndpointRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/docupanda-webhook-api-openapi.yml#/components/schemas/CreateWebhookEndpointRequest",
  "properties": {
    "url": {
      "type": "string",
      "title": "Url",
      "description": "The URL of the webhook endpoint"
    },
    "subscribedEvents": {
      "items": {
        "$ref": "#/$defs/EventTypeEnum"
      },
      "type": "array",
      "title": "Subscribedevents",
      "description": "The events to subscribe to, if not specified, all events will be sent to the endpoint"
    }
  },
  "type": "object",
  "required": [
    "url"
  ],
  "$defs": {
    "EventTypeEnum": {
      "type": "string",
      "enum": [
        "document.processed.success",
        "document.processed.error",
        "standardization.processed.success",
        "standardization.processed.error",
        "transformation.processed.success",
        "transformation.processed.error",
        "review.processed.success",
        "review.processed.error",
        "review.verified.success",
        "review.rejected.success",
        "schema.processed.success",
        "schema.processed.error",
        "classification.processed.success",
        "classification.processed.error",
        "split.processed.success",
        "split.processed.error",
        "merge.processed.success",
        "merge.processed.error",
        "workflow.processed.success",
        "workflow.processed.error"
      ],
      "title": "EventTypeEnum"
    }
  }
}