{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/citation-co/json-schema/citation-co-webhook-schema.json",
  "title": "webhook",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/citation-co-webhooks-api-openapi.yml#/components/schemas/webhook",
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "maxLength": 2000,
      "format": "uri"
    },
    "events": {
      "minItems": 1,
      "maxItems": 7,
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "document.created",
          "document.updated",
          "source.created",
          "source.updated",
          "job.succeeded",
          "job.failed",
          "job.cancelled"
        ]
      }
    }
  },
  "required": [
    "url",
    "events"
  ],
  "additionalProperties": false
}