{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/klanexai-com/json-schema/klanexai-com-delivery-schema.json",
  "title": "Delivery",
  "description": "A durable webhook delivery record. Delivery is at-least-once; receivers deduplicate on delivery_id (also sent as the X-Klanex-Delivery-Id header).\n",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/klanexai-com-openapi.yml#/components/schemas/Delivery",
  "type": "object",
  "properties": {
    "delivery_id": {
      "type": "string"
    },
    "execution_id": {
      "type": "string"
    },
    "event": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "description": "Callback destination",
      "frozen at enqueue time.": null
    },
    "status": {
      "type": "string",
      "enum": [
        "PENDING",
        "DELIVERED",
        "FAILED"
      ]
    },
    "attempts": {
      "type": "integer"
    },
    "max_attempts": {
      "type": "integer"
    },
    "last_status_code": {
      "type": "integer",
      "description": "Receiver's most recent HTTP status (0 = no response)."
    },
    "last_error": {
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "delivered_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}