{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/derive-to/json-schema/derive-to-webhook-schema.json",
  "title": "Webhook",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/derive-to-webhooks-api-openapi.yml#/components/schemas/Webhook",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "artifact_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "The artifact this webhook is scoped to, or null to fire on all workspace events"
    },
    "url": {
      "type": "string",
      "description": "The destination endpoint deliveries are POSTed to"
    },
    "kind": {
      "type": "string",
      "enum": [
        "generic",
        "slack"
      ],
      "description": "Delivery format: generic posts signed JSON, slack posts a Block Kit message"
    },
    "events": {
      "type": "string",
      "description": "Comma-separated event types to deliver, or \"*\" for all events"
    },
    "label": {
      "type": [
        "string",
        "null"
      ],
      "description": "Optional human-readable label, or null if unnamed"
    },
    "active": {
      "anyOf": [
        {
          "type": "number",
          "enum": [
            0
          ]
        },
        {
          "type": "number",
          "enum": [
            1
          ]
        }
      ],
      "description": "Whether deliveries are enabled (1) or paused (0)"
    },
    "created_at": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "artifact_id",
    "url",
    "kind",
    "events",
    "label",
    "active",
    "created_at"
  ]
}