{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/beel-es/json-schema/beel-es-webhook-delivery-log-schema.json",
  "title": "WebhookDeliveryLog",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/beel-es-accountwebhooks-api-openapi.yml#/components/schemas/WebhookDeliveryLog",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "subscription_id": {
      "type": "string",
      "format": "uuid"
    },
    "webhook_event_id": {
      "type": "string",
      "format": "uuid",
      "description": "Groups all delivery attempts for the same logical event."
    },
    "event_type": {
      "type": "string"
    },
    "attempt_number": {
      "type": "integer",
      "description": "Sequential number of this POST within its delivery. Manual retries continue the same sequence, so this can exceed the number of automatic attempts."
    },
    "http_status": {
      "type": [
        "integer",
        "null"
      ],
      "description": "HTTP response status code. Null if connection failed."
    },
    "response_body": {
      "type": [
        "string",
        "null"
      ],
      "description": "Body returned by your endpoint, kept for troubleshooting. Stored up to 2048 characters; longer responses are cut and `response_body_truncated` is true."
    },
    "response_body_truncated": {
      "type": "boolean",
      "description": "True when your endpoint returned more than 2048 characters and `response_body` holds only the beginning of it."
    },
    "response_body_length": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Length of the body your endpoint returned, before it was cut. Null for deliveries recorded before this field existed."
    },
    "duration_ms": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Delivery duration in milliseconds."
    },
    "success": {
      "type": "boolean"
    },
    "error_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "Error description for failed deliveries (timeout, connection error, etc.)"
    },
    "payload": {
      "type": [
        "string",
        "null"
      ],
      "description": "The JSON payload that was sent (or attempted) to your endpoint."
    },
    "request_headers": {
      "type": [
        "object",
        "null"
      ],
      "description": "HTTP headers sent to your endpoint with this delivery attempt.\nIncludes `BeeL-Signature`, `BeeL-Event`, `BeeL-Event-Id`, `BeeL-Delivery-Id`, and `Idempotency-Key`.\n",
      "additionalProperties": {
        "type": "string"
      }
    },
    "delivered_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}