{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/chatterapi-com/json-schema/chatterapi-com-lead-schema.json",
  "title": "Lead",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/chatterapi-com-openapi.json#/components/schemas/Lead",
  "type": "object",
  "properties": {
    "platform": {
      "type": "string",
      "enum": [
        "reddit",
        "x"
      ]
    },
    "kind": {
      "type": "string",
      "enum": [
        "post",
        "comment",
        "tweet"
      ]
    },
    "id": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "text": {
      "type": "string"
    },
    "author": {
      "type": [
        "string",
        "null"
      ]
    },
    "authorUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "community": {
      "type": [
        "string",
        "null"
      ]
    },
    "score": {
      "type": [
        "number",
        "null"
      ]
    },
    "createdAt": {
      "anyOf": [
        {
          "type": "string",
          "description": "ISO 8601 UTC timestamp"
        },
        {
          "type": "null"
        }
      ]
    },
    "intent": {
      "type": "string",
      "enum": [
        "asking_for_recommendation",
        "comparing_tools",
        "complaining_about_tool",
        "other"
      ]
    },
    "intentScore": {
      "type": "number",
      "minimum": 0,
      "maximum": 1
    },
    "matchedTerms": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "platform",
    "kind",
    "id",
    "url",
    "text",
    "author",
    "authorUrl",
    "community",
    "score",
    "createdAt",
    "intent",
    "intentScore",
    "matchedTerms"
  ],
  "additionalProperties": false
}