# Create and test a Smart Link

Configure an approved app environment domain, choose native and web destinations, and verify Smart Link routing and attribution.

Source: https://appportal.io/docs/guides/smart-links

A Smart Link opens an application destination when supported and falls back to a web or store
destination. Use routes your app actually implements. A short URL alone does not configure Apple
Universal Links, Android App Links, or your app's route handler.

## 1. Establish the app environment host

Open **Smart Links** in the dashboard for your app and environment.
Under **Organization domains**, request an appbridge.link domain if your organization does not
already have an approved one. Approval of the base domain is a human workflow.

Under **App environment domain**, choose the approved domain. A non-production environment can
create its environment host beneath the approved production domain without another base-domain
approval. Wait for readiness before creating links.

Custom domains require the applicable Enterprise agreement; they are not implied by choosing a
managed appbridge.link host.

## 2. Set destinations

Create a link and provide its display name and the application's installed-app destination.
Choose cross-platform routing or explicit iOS/Android destinations as appropriate.
Supply the required HTTPS web fallback and any relevant Apple App Store or Google Play URLs.

Use your app's real custom scheme or supported route path; do not invent an `appbridge://` scheme.
Check the effective destination matrix before saving. Configure and verify the application's
Universal Link/App Link association where you use those mechanisms.

## 3. Test installed and uninstalled behavior

Open the generated public URL on an iOS and Android test device with the app installed.
Confirm the exact in-app screen opens. Repeat without the app installed, then from a desktop
browser, and verify the expected store or web fallback.

Also test missing/invalid route handling. A redirect being issued proves only that the resolver
selected a destination; it does not prove the application accepted the route.

## 4. Read attribution correctly

Select the link in **Smart Links → Link stats**. Compare activations, redirects, confirmed web
landings, and accepted app routes. Scanner/automated activations are reported separately.
An unknown or unsupported confirmation state is not a successful app open.

**Success:** each tested platform reaches the intended destination and the available attribution
evidence agrees with the observed result. Campaign dimensions must come from the tested URL,
not from guessed user identity.

Agents can use the permitted Smart Link tools in [MCP](https://appportal.io/docs/api/mcp) after a human approves the
base domain. A saved OAuth profile remains constrained by current app access and permissions.
