{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/warplink-app/json-schema/warplink-app-app-schema.json",
  "title": "App",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/warplink-app-openapi.json#/components/schemas/App",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "org_id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "ios_bundle_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "ios_team_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "ios_app_store_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "ios_app_store_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "ios_universal_link_paths": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "android_package_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "android_sha256_fingerprints": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "android_play_store_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "android_app_links_paths": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "icon_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "icon_source": {
      "type": "string",
      "enum": [
        "auto",
        "manual"
      ]
    },
    "probabilistic_matching": {
      "type": "boolean",
      "description": "False means routing-only mode: the server no longer matches installs by probabilistic match or raw device signals for this app. Deep links keep working, and deferred links and attribution use only deterministic signals (the Android Play Install Referrer click id, and a device that already has an install). Defaults to true."
    },
    "skip_raw_for_organic_play_installs": {
      "type": "boolean",
      "description": "True means an Android install that Google Play reports as organic (found on its own) is not matched by IP address, language and timezone. Google Play also reports some installs that started from a link as organic. Those installs then match only through a link ID, a referral token or a Tether code. Has no effect while probabilistic_matching is false. Defaults to false."
    },
    "ios_recovery_enabled": {
      "type": "boolean",
      "description": "True when the iOS referral handoff page is on for this app. Android apps need no switch. Defaults to false."
    },
    "referral_credit_window": {
      "type": "string",
      "enum": [
        "24h",
        "7d",
        "30d"
      ],
      "description": "How long after the tap an install still credits the referrer. Defaults to 7d."
    },
    "count_existing_users": {
      "type": "boolean",
      "description": "True lets a person who already has the app count as a referral. Defaults to false."
    },
    "link_handle": {
      "type": "string",
      "description": "The lowercase subdomain label for this app's links, for example acme in acme.aplnk.to. Every app has one."
    },
    "link_domain": {
      "type": "string",
      "description": "The full host derived from link_handle, for example acme.aplnk.to."
    },
    "legacy_apex_enabled": {
      "type": "boolean",
      "readOnly": true,
      "description": "True for an app that existed when app subdomains launched. Its links on aplnk.to keep working and aplnk.to keeps listing the app for good."
    },
    "default_link_domain": {
      "type": "string",
      "readOnly": true,
      "description": "The domain a new link gets when a create request names none: the saved default, or link_domain when none is saved. Change it with PUT /v1/apps/{id}/link-domain. It never changes a link that already exists."
    },
    "default_link_domain_available": {
      "type": "boolean",
      "readOnly": true,
      "description": "False when the saved default is a custom domain that is no longer live. A link created with no domain then gets 409 DEFAULT_DOMAIN_UNAVAILABLE until you choose a domain or a new default."
    },
    "allowed_link_domains": {
      "type": "array",
      "readOnly": true,
      "items": {
        "type": "string"
      },
      "description": "The hostnames a new link for this app may use: the default first when it is available, then aplnk.to (legacy apps only), link_domain and the org's live custom domains."
    },
    "previous_link_handle": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "The app's old subdomain label while a rename period is open. null otherwise."
    },
    "previous_link_domain": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "The full old host while a rename period is open, for example oldname.aplnk.to. It keeps opening the app."
    },
    "rename_period_ends_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "readOnly": true,
      "description": "The date shown for the open rename period. It is not a deadline and not a promise to move links that day. If links on the old subdomain later move to the new one, their old URLs redirect. null when no period is open."
    },
    "rename_period_extensions": {
      "type": "integer",
      "minimum": 0,
      "maximum": 2,
      "readOnly": true,
      "description": "How many times the open rename period was extended by 1 month. At most 2."
    },
    "tether": {
      "type": "boolean",
      "description": "Whether links of this app can use Tether. On for every app on every plan until you turn it off."
    },
    "tether_new_links": {
      "type": "boolean",
      "description": "Whether new links of this app start with Tether on."
    },
    "tether_hosted_page": {
      "type": "boolean",
      "description": "Whether links with Tether on open the hosted Tether page. When false, your own page copies the code. Send true only when the app has an iOS Bundle ID and an App Store URL. Otherwise the call fails with TETHER_HOSTED_PAGE_NEEDS_IOS."
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}