{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mentionkit-com/json-schema/mentionkit-com-keyword-list-response-schema.json",
  "title": "KeywordListResponse",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mentionkit-com-openapi.json#/components/schemas/KeywordListResponse",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "value": {
            "type": "string"
          },
          "category": {
            "type": [
              "string",
              "null"
            ]
          },
          "subprompt": {
            "type": [
              "string",
              "null"
            ]
          },
          "mentionCount": {
            "type": "integer"
          },
          "sevenDayPerformance": {
            "type": "array",
            "description": "Daily mention totals for the latest seven UTC calendar days.",
            "items": {
              "$ref": "#/$defs/KeywordSevenDayPerformanceItem"
            }
          },
          "projectId": {
            "type": [
              "integer",
              "null"
            ]
          },
          "platforms": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "platform": {
                  "type": "string",
                  "enum": [
                    "REDDIT",
                    "X",
                    "LINKEDIN",
                    "HN",
                    "YOUTUBE",
                    "BLUESKY",
                    "TIKTOK",
                    "MEDIUM",
                    "GITHUB",
                    "SLACK",
                    "FORUMS"
                  ]
                },
                "enabled": {
                  "type": "boolean"
                }
              },
              "required": [
                "platform",
                "enabled"
              ]
            }
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "value",
          "category",
          "subprompt",
          "mentionCount",
          "sevenDayPerformance",
          "projectId",
          "platforms",
          "createdAt",
          "updatedAt"
        ]
      }
    },
    "total": {
      "type": "integer"
    }
  },
  "required": [
    "items",
    "total"
  ],
  "$defs": {
    "KeywordSevenDayPerformanceItem": {
      "type": "object",
      "properties": {
        "date": {
          "type": "string",
          "format": "date"
        },
        "totalMentions": {
          "type": "integer"
        }
      },
      "required": [
        "date",
        "totalMentions"
      ]
    }
  }
}