{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pestprocrm-com/json-schema/pestprocrm-com-webhook-schema.json",
  "title": "Webhook",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pestprocrm-com-webhooks-api-openapi.yml#/components/schemas/Webhook",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Webhook ID"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Webhook URL"
    },
    "events": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Subscribed events"
    },
    "isActive": {
      "type": "boolean",
      "description": "Active status"
    },
    "failureCount": {
      "type": "integer",
      "description": "Consecutive failures"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "Created timestamp"
    }
  }
}