{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/terminal49/json-schema/terminal49-webhook-notification-single-schema.json",
  "title": "WebhookNotificationSingle",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/terminal49-webhooks-api-openapi.yml#/components/schemas/WebhookNotificationSingle",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/WebhookNotificationResource"
    }
  },
  "$defs": {
    "WebhookNotificationAttributes": {
      "type": "object",
      "properties": {
        "event": {
          "type": "string"
        },
        "delivery_status": {
          "type": "string",
          "enum": [
            "pending",
            "succeeded",
            "failed"
          ]
        },
        "response_status_code": {
          "type": [
            "integer",
            "null"
          ]
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "body": {
          "type": "object",
          "description": "The JSON:API payload delivered to the webhook URL."
        }
      }
    },
    "WebhookNotificationResource": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "webhook_notification"
          ]
        },
        "attributes": {
          "$ref": "#/$defs/WebhookNotificationAttributes"
        }
      }
    }
  }
}