{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hashlock-markets/json-schema/hashlock-markets-webhook-schema.json",
  "title": "Webhook",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hashlock-markets-openapi.json#/components/schemas/Webhook",
  "type": "object",
  "required": [
    "id",
    "url",
    "events",
    "enabled"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "events": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "empty = every event"
    },
    "enabled": {
      "type": "boolean"
    },
    "lastDeliveryAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "lastStatus": {
      "type": [
        "integer",
        "null"
      ],
      "description": "HTTP status of the last delivery attempt; null = never delivered"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}