{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/letl-ink/json-schema/letl-ink-post-links-request-schema.json",
  "title": "PostLinksRequest",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/letl-ink-openapi-generated.yml#/components/schemas/PostLinksRequest",
  "type": "object",
  "properties": {
    "destination": {
      "type": "string",
      "description": "The URL to redirect to."
    },
    "short_code": {
      "type": "string",
      "description": "Up to 20 characters, optional."
    },
    "title": {
      "type": "string",
      "description": "Display name in the dashboard."
    },
    "domain": {
      "type": "string",
      "description": "Verified custom domain or base domain."
    },
    "type": {
      "type": "string",
      "description": "direct (default), utm, appstore, instagram, mobile or device."
    },
    "utm_source": {
      "type": "string",
      "description": "For utm links; required when type is utm."
    },
    "utm_medium": {
      "type": "string",
      "description": "UTM medium."
    },
    "utm_campaign": {
      "type": "string",
      "description": "UTM campaign."
    },
    "ios_url": {
      "type": "string",
      "description": "iOS destination for appstore/mobile links."
    },
    "android_url": {
      "type": "string",
      "description": "Android destination for appstore/mobile links."
    },
    "desktop_url": {
      "type": "string",
      "description": "Desktop URL for device links."
    },
    "mobile_url": {
      "type": "string",
      "description": "Mobile URL for device links."
    },
    "instagram_username": {
      "type": "string",
      "description": "For instagram links."
    },
    "split_variations": {
      "type": "array",
      "description": "Array of {name, url, weight} objects for split testing."
    },
    "limit_visits_per_device": {
      "type": "boolean",
      "description": "Set true and supply visit_limit_per_device."
    },
    "starts_at": {
      "type": "string",
      "description": "ISO 8601 start time."
    },
    "expires_at": {
      "type": "string",
      "description": "ISO 8601 expiry time."
    },
    "max_clicks": {
      "type": "integer",
      "description": "Stop redirecting after this many clicks."
    },
    "expired_url": {
      "type": "string",
      "description": "Redirect when expired."
    },
    "password": {
      "type": "string",
      "description": "Password protection."
    },
    "retargeting": {
      "type": "object",
      "description": "Pixel configuration."
    },
    "track_conversions": {
      "type": "boolean",
      "description": "Append click ID to destination."
    },
    "campaign_id": {
      "type": "integer",
      "description": "Associate link with a campaign."
    }
  },
  "required": [
    "destination"
  ]
}