{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-xdr/json-schema/cisco-xdr-webhook-result-schema.json",
  "title": "WebhookResult",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-xdr-webhookresult-api-openapi.yml#/components/schemas/WebhookResult",
  "type": "object",
  "properties": {
    "errors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/WebhookResultErrors"
      }
    },
    "org_id": {
      "description": "the org id of the user owning this WebhookResult",
      "type": "string"
    },
    "event_id": {
      "description": "the event id which triggered the Webhook",
      "type": "string"
    },
    "auth_type": {
      "description": "the auth-type that was used calling the api url",
      "type": "string",
      "enum": [
        "iroh-jwt"
      ]
    },
    "workflow": {
      "description": "the workflow fired by the Webhook",
      "type": "string"
    },
    "result": {
      "description": "the response from either the called API or the Workflow",
      "type": "string"
    },
    "id": {
      "description": "the ID of this WebhookResult",
      "type": "string"
    },
    "url": {
      "description": "the url fired by the Webhook",
      "type": "string"
    },
    "user_id": {
      "description": "the user id owning this WebhookResult",
      "type": "string"
    },
    "entity_id": {
      "description": "the entity id in the event which triggered the Webhook",
      "type": "string"
    },
    "webhook_id": {
      "description": "the Webhook id triggered by the event",
      "type": "string"
    },
    "visibility": {
      "description": "the visibility of this WebhookResult",
      "type": "string",
      "enum": [
        "org",
        "user"
      ]
    },
    "created_at": {
      "description": "When this WebhookResult was created",
      "type": "string",
      "format": "date-time"
    }
  },
  "additionalProperties": false,
  "required": [
    "org_id",
    "event_id",
    "id",
    "user_id",
    "webhook_id",
    "visibility",
    "created_at"
  ],
  "$defs": {
    "WebhookResultErrors": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "fatal",
            "warning",
            "error"
          ]
        }
      },
      "additionalProperties": false,
      "required": [
        "code",
        "message",
        "type"
      ]
    }
  }
}