{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/octolens-com/json-schema/octolens-com-pause-keyword-response-schema.json",
  "title": "PauseKeywordResponse",
  "description": "The committed keyword row plus whether this request changed it.",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/octolens-com-openapi.json#/components/schemas/PauseKeywordResponse",
  "type": "object",
  "properties": {
    "id": {
      "description": "Stable numeric keyword ID.",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "keyword": {
      "description": "The phrase being tracked.",
      "type": "string"
    },
    "context": {
      "description": "Short sentence disambiguating the keyword for AI relevance scoring. Auto-generated from the company profile when a keyword is created without an explicit context.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "additionalTerms": {
      "description": "Additional terms required alongside the main keyword (comma-separated). Combined with `additionalTermsAndOr` to form AND/OR semantics.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "additionalTermsAndOr": {
      "description": "How `additionalTerms` combine: `true` = OR (any one must appear), `false` = AND (all must appear).",
      "type": "boolean"
    },
    "caseSensitive": {
      "description": "If `true`, matching is case-sensitive. Default `false`.",
      "type": "boolean"
    },
    "symbolSensitive": {
      "description": "Also known as \"exact match\" in the UI. When `true`, multi-word keywords require the words to appear together. When `false`, each word can appear anywhere in the post (noisier).",
      "type": "boolean"
    },
    "platforms": {
      "description": "Platforms this keyword is monitored on.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Platform"
      }
    },
    "excludeWords": {
      "description": "Comma-separated words that disqualify a post if present. Applied as exact-match terms.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "wildcardExcludeWords": {
      "description": "Comma-separated wildcard exclusion patterns. Supports `*` for prefix/suffix match (e.g. `spam*` matches `spammer`).",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "excludeAuthors": {
      "description": "Comma-separated author handles / usernames whose posts should be filtered out.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "tag": {
      "description": "Classification tag. `null` for legacy keywords without a tag.",
      "anyOf": [
        {
          "$ref": "#/$defs/KeywordTag"
        },
        {
          "type": "null"
        }
      ]
    },
    "paused": {
      "description": "When `true`, data collection is paused for this keyword.",
      "type": "boolean"
    },
    "isSubReddit": {
      "description": "When `true`, this keyword represents a subreddit to monitor rather than a free-text phrase. `null` for non-Reddit keywords.",
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ]
    },
    "kind": {
      "description": "`text`: matched by its words on its platforms. `discord_server`: collects every message of one connected Discord server (its binding: `GET /api/v2/integrations/discord/monitors?keywordId=`); `keyword` is the server's name and is never matched as text. Absent = `text`.",
      "type": "string",
      "enum": [
        "text",
        "discord_server"
      ]
    },
    "changed": {
      "description": "True when THIS request is the one that moved the row; false when the keyword was already in the requested state (or a concurrent identical request won the race).",
      "type": "boolean"
    }
  },
  "required": [
    "id",
    "keyword",
    "context",
    "additionalTerms",
    "additionalTermsAndOr",
    "caseSensitive",
    "symbolSensitive",
    "platforms",
    "excludeWords",
    "wildcardExcludeWords",
    "excludeAuthors",
    "tag",
    "paused",
    "isSubReddit",
    "changed"
  ],
  "additionalProperties": false,
  "$defs": {
    "KeywordTag": {
      "description": "Classification of what this keyword represents. Used to route posts to brand / competitor / industry-context workflows and pick the right AI prompt.",
      "type": "string",
      "enum": [
        "own_brand",
        "competitor",
        "industry_term"
      ]
    },
    "Platform": {
      "description": "Platform a mention can originate from / a keyword can be monitored on.",
      "type": "string",
      "enum": [
        "dev",
        "github",
        "hackernews",
        "linkedin",
        "producthunt",
        "reddit",
        "stackoverflow",
        "twitter",
        "youtube",
        "tiktok",
        "medium",
        "reddit_comment",
        "bluesky",
        "newsletter",
        "podcasts",
        "news",
        "web",
        "trustpilot_reviews",
        "google_reviews",
        "app_store_reviews",
        "google_play_reviews",
        "instagram",
        "facebook",
        "discord",
        "threads"
      ]
    }
  }
}