{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/contraforce/json-schema/contraforce-api-response-of-paged-result-of-webhook-delivery-log-dto-schema.json",
  "title": "ApiResponseOfPagedResultOfWebhookDeliveryLogDto",
  "description": "Standard v2 API response envelope for single-item responses.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/contraforce-webhooks-api-openapi.yml#/components/schemas/ApiResponseOfPagedResultOfWebhookDeliveryLogDto",
  "type": "object",
  "properties": {
    "data": {
      "description": "Represents a page of results with a token to load more.",
      "$ref": "#/$defs/PagedResultOfWebhookDeliveryLogDto"
    },
    "meta": {
      "$ref": "#/$defs/ResponseMeta"
    }
  },
  "$defs": {
    "PagedResultOfWebhookDeliveryLogDto": {
      "type": "object",
      "properties": {
        "items": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "$ref": "#/$defs/WebhookDeliveryLogDto"
          }
        },
        "continuationToken": {
          "type": [
            "null",
            "string"
          ]
        },
        "hasMore": {
          "type": "boolean"
        }
      },
      "description": "Represents a page of results with a token to load more."
    },
    "ResponseMeta": {
      "type": "object",
      "properties": {
        "requestId": {
          "type": [
            "null",
            "string"
          ]
        },
        "timestamp": {
          "type": [
            "null",
            "string"
          ]
        }
      }
    },
    "WebhookDeliveryLogDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "eventId": {
          "type": "string",
          "format": "uuid"
        },
        "eventType": {
          "type": [
            "null",
            "string"
          ]
        },
        "status": {
          "$ref": "#/$defs/WebhookDeliveryStatus"
        },
        "httpStatusCode": {
          "pattern": "^-?(?:0|[1-9]\\d*)$",
          "type": [
            "null",
            "integer",
            "string"
          ],
          "format": "int32"
        },
        "errorMessage": {
          "type": [
            "null",
            "string"
          ]
        },
        "eventSourceAccountId": {
          "type": [
            "null",
            "string"
          ],
          "description": "An optional reference to the account from which the event originated.",
          "format": "uuid"
        },
        "eventSourceAccountName": {
          "type": [
            "null",
            "string"
          ],
          "description": "The name of the account from which event originates"
        },
        "eventSubjectId": {
          "type": [
            "null",
            "string"
          ]
        },
        "eventSubjectDisplayName": {
          "type": [
            "null",
            "string"
          ]
        },
        "eventSubjectAttributes": {
          "type": [
            "null",
            "object"
          ],
          "additionalProperties": {
            "type": "string"
          }
        },
        "webhookConfigurationId": {
          "type": "string",
          "format": "uuid"
        },
        "isTest": {
          "type": "boolean"
        },
        "originalDeliveryId": {
          "type": [
            "null",
            "string"
          ],
          "format": "uuid"
        },
        "attemptNumber": {
          "pattern": "^-?(?:0|[1-9]\\d*)$",
          "type": [
            "integer",
            "string"
          ],
          "format": "int32"
        },
        "latencyMs": {
          "pattern": "^-?(?:0|[1-9]\\d*)$",
          "type": [
            "null",
            "integer",
            "string"
          ],
          "format": "int64"
        },
        "responseSnippet": {
          "type": [
            "null",
            "string"
          ]
        },
        "eventPayload": {
          "type": [
            "null",
            "string"
          ]
        },
        "eventOccurredAt": {
          "type": [
            "null",
            "string"
          ],
          "format": "date-time"
        },
        "completedAt": {
          "type": [
            "null",
            "string"
          ],
          "format": "date-time"
        },
        "redeliveryRequestedAt": {
          "type": [
            "null",
            "string"
          ],
          "format": "date-time"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "WebhookDeliveryStatus": {
      "enum": [
        "Pending",
        "Succeeded",
        "Failed"
      ]
    }
  }
}