{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/reachium-io/json-schema/reachium-io-webhook-delivery-schema.json",
  "title": "WebhookDelivery",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/reachium-io-openapi.yml#/components/schemas/WebhookDelivery",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "endpoint_id": {
      "type": "string"
    },
    "workspace_id": {
      "type": "string"
    },
    "event_type": {
      "type": "string"
    },
    "payload": {},
    "status": {
      "type": "string"
    },
    "attempts": {
      "type": "integer"
    },
    "next_attempt_at": {
      "type": "string",
      "format": "date-time"
    },
    "claimed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "last_status_code": {
      "type": [
        "integer",
        "null"
      ]
    },
    "last_error": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "delivered_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  },
  "required": [
    "id",
    "endpoint_id",
    "workspace_id",
    "event_type",
    "payload",
    "status",
    "attempts",
    "next_attempt_at",
    "claimed_at",
    "last_status_code",
    "last_error",
    "created_at",
    "delivered_at"
  ]
}