{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/zluri/refs/heads/main/json-schema/webhook.json",
  "title": "Zluri Webhook",
  "description": "A webhook configured to receive real-time notifications for events such as user status updates from IDP and HRMS tools.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier of the webhook."
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "The URL that will receive webhook notifications."
    },
    "events": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "List of event types this webhook subscribes to."
    },
    "status": {
      "type": "string",
      "description": "Current status of the webhook.",
      "enum": ["active", "inactive"]
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the webhook was created."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the webhook was last updated."
    }
  },
  "required": ["id", "url", "events", "status"]
}
