{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/activecampaign/main/json-schema/activecampaign-insight-card-list-response-schema.json",
  "title": "InsightCardListResponse",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/activecampaign-insight-cards-api-openapi.yml#/components/schemas/InsightCardListResponse",
  "type": "array",
  "items": {
    "$ref": "#/$defs/InsightCardResponse"
  },
  "$defs": {
    "InsightCardMetadata": {
      "required": [
        "prompt",
        "title",
        "summary",
        "insight_card_type",
        "insight_card_label"
      ],
      "properties": {
        "prompt": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "summary": {
          "type": "string"
        },
        "used": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "insight_card_type": {
          "type": "string"
        },
        "insight_card_label": {
          "type": "string"
        }
      },
      "type": "object",
      "additionalProperties": false
    },
    "InsightCardResponse": {
      "required": [
        "reseller_id",
        "resource_id",
        "insight",
        "run_timestamp",
        "metadata"
      ],
      "properties": {
        "reseller_id": {
          "type": "integer"
        },
        "resource_id": {
          "type": "string",
          "format": "uuid"
        },
        "insight": {
          "type": "string"
        },
        "run_timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "metadata": {
          "$ref": "#/$defs/InsightCardMetadata"
        }
      },
      "type": "object",
      "additionalProperties": false
    }
  }
}