{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/appy-to/json-schema/appy-to-postback-delivery-schema.json",
  "title": "PostbackDelivery",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/appy-to-postbacks-api-openapi.yml#/components/schemas/PostbackDelivery",
  "type": "object",
  "required": [
    "id",
    "trigger",
    "eventName",
    "installId",
    "status",
    "attempts",
    "responseStatus",
    "lastError",
    "createdAt",
    "completedAt",
    "nextAttemptAt"
  ],
  "properties": {
    "id": {
      "type": "integer"
    },
    "trigger": {
      "type": "string",
      "enum": [
        "install",
        "event"
      ]
    },
    "eventName": {
      "type": [
        "string",
        "null"
      ]
    },
    "installId": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "delivered",
        "failed"
      ]
    },
    "attempts": {
      "type": "integer"
    },
    "responseStatus": {
      "type": [
        "integer",
        "null"
      ]
    },
    "lastError": {
      "type": [
        "string",
        "null"
      ]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "completedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "nextAttemptAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Set while a retry is scheduled."
    }
  }
}