{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mentionkit-com/json-schema/mentionkit-com-mention-list-response-schema.json",
  "title": "MentionListResponse",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mentionkit-com-openapi.json#/components/schemas/MentionListResponse",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MentionItem"
      }
    },
    "nextCursor": {
      "type": [
        "integer",
        "null"
      ]
    },
    "limit": {
      "type": [
        "integer",
        "null"
      ]
    },
    "sort": {
      "type": "string",
      "enum": [
        "newest",
        "oldest"
      ]
    },
    "project": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  },
  "required": [
    "items",
    "nextCursor",
    "limit",
    "sort",
    "project"
  ],
  "$defs": {
    "MentionItem": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "platform": {
          "type": "string",
          "enum": [
            "REDDIT",
            "X",
            "LINKEDIN",
            "HN",
            "YOUTUBE",
            "BLUESKY",
            "TIKTOK",
            "MEDIUM",
            "GITHUB",
            "SLACK",
            "FORUMS"
          ]
        },
        "keywordValue": {
          "type": "string"
        },
        "projectId": {
          "type": [
            "integer",
            "null"
          ]
        },
        "trackerId": {
          "type": [
            "integer",
            "null"
          ]
        },
        "subreddit": {
          "type": [
            "string",
            "null"
          ]
        },
        "authorHandle": {
          "type": [
            "string",
            "null"
          ]
        },
        "text": {
          "type": "string"
        },
        "lang": {
          "type": [
            "string",
            "null"
          ]
        },
        "sourceCreatedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "sourceUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "score": {
          "type": "integer",
          "enum": [
            0,
            1
          ],
          "description": "Mention quality: 1 is high score and 0 is low score."
        },
        "reason": {
          "type": [
            "string",
            "null"
          ]
        },
        "angle": {
          "type": [
            "string",
            "null"
          ]
        },
        "engagement": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": true
        },
        "communityId": {
          "type": [
            "string",
            "null"
          ]
        },
        "communityName": {
          "type": [
            "string",
            "null"
          ]
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "commentStatus": {
          "type": "integer",
          "enum": [
            1,
            0,
            -1
          ]
        },
        "projectName": {
          "type": [
            "string",
            "null"
          ]
        },
        "platformPostId": {
          "type": [
            "string",
            "null"
          ]
        },
        "permalink": {
          "type": [
            "string",
            "null"
          ]
        },
        "redditPostId": {
          "type": [
            "string",
            "null"
          ]
        },
        "redditCommentId": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "platform",
        "keywordValue",
        "projectId",
        "trackerId",
        "subreddit",
        "authorHandle",
        "text",
        "lang",
        "sourceCreatedAt",
        "createdAt",
        "sourceUrl",
        "score",
        "reason",
        "angle",
        "engagement",
        "communityId",
        "communityName",
        "tags",
        "commentStatus",
        "projectName",
        "platformPostId",
        "permalink",
        "redditPostId",
        "redditCommentId"
      ]
    }
  }
}