{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/shopsavvy-com/json-schema/shopsavvy-com-webhook-schema.json",
  "title": "Webhook",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/shopsavvy-com-api-openapi.json#/components/schemas/Webhook",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "events": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "price_drop",
          "availability_change",
          "schedule_completion"
        ]
      }
    },
    "is_active": {
      "type": "boolean"
    },
    "secret": {
      "type": "string",
      "description": "Only returned on creation. Use it to verify X-ShopSavvy-Signature."
    },
    "created_at": {
      "type": "string"
    },
    "last_triggered_at": {
      "type": [
        "string",
        "null"
      ],
      "description": "In GET /webhooks."
    },
    "failure_count": {
      "type": "integer",
      "description": "In GET /webhooks."
    },
    "consecutive_failures": {
      "type": "integer",
      "description": "In GET /webhooks. The webhook is disabled after 50."
    }
  }
}