{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mentionsapi-com/json-schema/mentionsapi-com-watch-request-schema.json",
  "title": "WatchRequest",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mentionsapi-com-openapi.json#/components/schemas/WatchRequest",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "query",
    "brand",
    "mode",
    "interval",
    "webhook_url",
    "webhook_secret"
  ],
  "properties": {
    "query": {
      "type": "string",
      "minLength": 1,
      "maxLength": 480
    },
    "brand": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "mode": {
      "$ref": "#/$defs/CheckMode"
    },
    "interval": {
      "type": "string",
      "enum": [
        "hourly",
        "daily",
        "weekly"
      ]
    },
    "webhook_url": {
      "type": "string",
      "format": "uri"
    },
    "webhook_secret": {
      "type": "string",
      "minLength": 16,
      "maxLength": 128
    },
    "trigger_on": {
      "type": "array",
      "minItems": 1,
      "description": "Triggers that enqueue a webhook. The live handler stores this array as sent and does not fill a default. Omit it and the runner stores no filter, so no webhook is fired. The docs page says an omission means all four triggers; that default is not applied by the route.",
      "items": {
        "type": "string",
        "enum": [
          "mention_added",
          "mention_removed",
          "rank_changed",
          "citation_changed"
        ]
      }
    }
  },
  "$defs": {
    "CheckMode": {
      "type": "string",
      "enum": [
        "quick",
        "perplexity_live",
        "realistic",
        "chatgpt_live",
        "gemini_live",
        "ai_overview",
        "ai_mode",
        "bing_copilot",
        "all_live",
        "deep",
        "change_track"
      ],
      "description": "realistic is a deprecated alias of perplexity_live. deep and change_track return 501."
    }
  }
}