{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/listdrop-co/json-schema/listdrop-co-webhook-list-schema.json",
  "title": "WebhookList",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/listdrop-co-openapi.json#/components/schemas/WebhookList",
  "type": "object",
  "required": [
    "webhooks"
  ],
  "properties": {
    "webhooks": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "listId",
          "url",
          "createdAt",
          "failures",
          "disabledAt",
          "lastStatus",
          "lastDeliveryAt"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "listId": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "failures": {
            "type": "integer",
            "description": "Consecutive delivery failures (10 disables the hook)."
          },
          "disabledAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "lastStatus": {
            "type": [
              "string",
              "null"
            ],
            "description": "HTTP status or error code of the last delivery."
          },
          "lastDeliveryAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      }
    }
  }
}