{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/utmkit-co/json-schema/utmkit-co-link-input-schema.json",
  "title": "LinkInput",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/utmkit-co-openapi.yml#/components/schemas/LinkInput",
  "properties": {
    "android_url": {
      "description": "optional Android destination (spec 047): an app link or a Play page, https only; phones on Android are routed here, blank clears it",
      "type": [
        "string",
        "null"
      ]
    },
    "campaign_id": {
      "type": [
        "integer",
        "null"
      ]
    },
    "destination": {
      "format": "uri",
      "type": [
        "string",
        "null"
      ]
    },
    "domain": {
      "description": "optional; a verified custom domain name, else the shared domain",
      "type": "string"
    },
    "expires_at": {
      "format": "date-time",
      "type": [
        "string",
        "null"
      ]
    },
    "ios_url": {
      "description": "optional iOS destination (spec 047): an app link or an App Store page, https only; phones on iOS are routed here, blank clears it",
      "type": [
        "string",
        "null"
      ]
    },
    "note": {
      "description": "free text kept on the link; blank clears it",
      "type": [
        "string",
        "null"
      ]
    },
    "short_code": {
      "description": "optional; random when omitted",
      "type": "string"
    },
    "tags": {
      "description": "tag names (spec 039): an existing tag of the workspace by name, case-insensitive, else a new one; on update the list replaces the link's tags and [] clears them",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "utm_campaign": {
      "type": "string"
    },
    "utm_content": {
      "type": "string"
    },
    "utm_medium": {
      "type": "string"
    },
    "utm_source": {
      "type": "string"
    },
    "utm_term": {
      "type": "string"
    },
    "whatsapp_message": {
      "description": "the prefilled message, plain text, never URL-encoded",
      "type": [
        "string",
        "null"
      ]
    },
    "whatsapp_number": {
      "description": "a WhatsApp click-to-chat link (issue #202): the phone in international format (+, spaces and dashes are stripped). Given INSTEAD of destination — the wa.me URL is composed and the message encoded once, server-side",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "type": "object"
}