{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/avala-ai/json-schema/avala-ai-webhook-delivery-schema.json",
  "title": "WebhookDelivery",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/avala-ai-webhook-deliveries-api-openapi.yml#/components/schemas/WebhookDelivery",
  "type": "object",
  "properties": {
    "uid": {
      "title": "Uid",
      "type": "string",
      "format": "uuid",
      "readOnly": true
    },
    "subscription": {
      "title": "Subscription",
      "type": "string",
      "format": "uuid",
      "readOnly": true
    },
    "event_type": {
      "title": "Event type",
      "type": "string",
      "readOnly": true,
      "minLength": 1
    },
    "payload": {
      "title": "Payload",
      "type": "object",
      "readOnly": true
    },
    "response_status": {
      "title": "Response status",
      "type": [
        "integer",
        "null"
      ],
      "readOnly": true
    },
    "response_body_size": {
      "title": "Response body size",
      "type": "integer",
      "readOnly": true
    },
    "response_body_sha256": {
      "title": "Response body sha256",
      "type": "string",
      "readOnly": true,
      "minLength": 1
    },
    "response_preview": {
      "title": "Response preview",
      "type": "string",
      "readOnly": true,
      "minLength": 1
    },
    "attempts": {
      "title": "Attempts",
      "type": "integer",
      "readOnly": true
    },
    "next_retry_at": {
      "title": "Next retry at",
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "readOnly": true
    },
    "status": {
      "title": "Status",
      "type": "string",
      "enum": [
        "pending",
        "delivered",
        "failed"
      ],
      "readOnly": true
    },
    "created_at": {
      "title": "Created at",
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "updated_at": {
      "title": "Updated at",
      "type": "string",
      "format": "date-time",
      "readOnly": true
    }
  }
}