{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/netcorecloud/json-schema/netcorecloud-webhook-info-schema.json",
  "title": "WebhookInfo",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/netcorecloud-webhook-management-api-openapi.yml#/components/schemas/WebhookInfo",
  "type": "object",
  "required": [
    "name",
    "urlEndpoint",
    "status",
    "type"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Webhook display name."
    },
    "urlEndpoint": {
      "type": "string",
      "format": "uri",
      "description": "Webhook destination URL."
    },
    "failureAlertEmail": {
      "type": "string",
      "format": "email",
      "description": "Email address for webhook failure alerts."
    },
    "status": {
      "type": "string",
      "enum": [
        "enabled",
        "disabled"
      ],
      "description": "Current webhook state."
    },
    "type": {
      "type": "string",
      "enum": [
        "incoming",
        "event"
      ],
      "description": "Indicates whether the webhook is for incoming messages or events."
    },
    "sourceKey": {
      "type": "string",
      "description": "Optional identifier for the source or service associated with this webhook."
    }
  }
}