{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/postproxy-dev/json-schema/postproxy-dev-webhook-delivery-schema.json",
  "title": "WebhookDelivery",
  "description": "A delivery attempt of a webhook event.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/postproxy-dev-webhooks-api-openapi.yml#/components/schemas/WebhookDelivery",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Delivery record id."
    },
    "event_id": {
      "type": "string",
      "description": "Event delivery ID, prefixed with whevt_."
    },
    "event_type": {
      "type": "string",
      "description": "Event type delivered (e.g. post.processed)."
    },
    "response_status": {
      "type": "integer",
      "description": "HTTP status code returned by the endpoint."
    },
    "attempt_number": {
      "type": "integer",
      "description": "Attempt number (deliveries are retried up to 5 times with exponential backoff)."
    },
    "success": {
      "type": "boolean",
      "description": "Whether the delivery succeeded."
    },
    "attempted_at": {
      "type": "string",
      "description": "ISO 8601 time of the attempt."
    },
    "created_at": {
      "type": "string",
      "description": "ISO 8601 creation time."
    }
  }
}