{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/buildworkpro-com/json-schema/buildworkpro-com-webhook-delivery-full-schema.json",
  "title": "WebhookDeliveryFull",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/buildworkpro-com-webhooks-api-openapi.yml#/components/schemas/WebhookDeliveryFull",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "eventId": {
      "type": "string"
    },
    "endpointId": {
      "type": "integer"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "succeeded",
        "failed",
        "exhausted"
      ]
    },
    "attemptCount": {
      "type": "integer"
    },
    "nextAttemptAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "lastAttemptedAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "responseStatus": {
      "type": [
        "integer",
        "null"
      ]
    },
    "responseBody": {
      "type": [
        "string",
        "null"
      ]
    },
    "responseHeaders": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": "string"
      }
    },
    "errorMessage": {
      "type": [
        "string",
        "null"
      ]
    },
    "createdAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "string"
        }
      ]
    },
    "completedAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "id",
    "eventId",
    "endpointId",
    "status",
    "attemptCount",
    "nextAttemptAt",
    "lastAttemptedAt",
    "responseStatus",
    "responseBody",
    "responseHeaders",
    "errorMessage",
    "createdAt",
    "completedAt"
  ]
}