{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/financegenius-ai/json-schema/financegenius-ai-app-api-v1-crm-attribution-link-in-schema.json",
  "title": "LinkIn",
  "description": "A campaign link minted on the channel-test screen: a page of ours, never a lender.\n\nLender redirects are not offered here (review defect 11): a link that\nsends people straight to one lender, outside the hub's issue_redirect\n(share consent, application.pushed, the enquiry budget), would make a\nsingle-lender campaign possible and steer before selection. They come\nonly from the customer's own hand-off (crm_lenders issue_redirect), so a\nlender_redirect kind or a lender_code answers 422.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/financegenius-ai-crm-attribution-api-openapi.yml#/components/schemas/app__api__v1__crm_attribution__LinkIn",
  "properties": {
    "kind": {
      "type": "string",
      "enum": [
        "in_app_view",
        "content"
      ],
      "title": "Kind"
    },
    "destination_path": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ],
      "title": "Destination Path"
    },
    "campaign_ref": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Campaign Ref"
    },
    "template_ref": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Template Ref"
    },
    "utm": {
      "additionalProperties": {
        "type": "string"
      },
      "propertyNames": {
        "enum": [
          "utm_source",
          "utm_medium",
          "utm_campaign",
          "utm_content"
        ]
      },
      "type": "object",
      "title": "Utm"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "kind"
  ]
}