# Test Tether

You can check Tether end to end before a real customer taps a link. A test code goes through the same SDK read as a real code, and it writes nothing to your analytics.

## Check it before a link opts in

Open https://YOUR_HANDLE.aplnk.to/test in Safari on an iPhone. The page shows a test code that starts with wl1t_. Tap Copy code. The code works for 15 minutes.

Read the code in your app. In paste button mode, tap the paste button. In automatic mode, delete the app, then install it again and open it. An app whose first-launch check is complete reads nothing. The receipt is ready after that check ends. In on call mode, call the read method.

The SDK sends the test code to WarpLink. It keeps a test receipt.

Show or log the receipt in your app: `WarpLink.lastTetherTestReceipt`. The SDK forgets it when the app restarts.

Send the receipt to the setup check as `tether_test_receipt`. An AI agent calls `verify_setup` with the app and the receipt. With REST, call `GET /v1/apps/{id}/setup-check?tether_test_receipt=<receipt>` with an API key.

The `tether_paste` row passes when the receipt is valid for this app. The check accepts a receipt for 1 hour. A test code makes no link, click or install.

Check that the tap marker survives. Comment out the script tag on a test page. The script removes the marker from the address when it reads it. Open a WarpLink link that has Tether on, on an iPhone or in desktop Safari with an iPhone user agent.

When the page has loaded, confirm that `wl_rt=` is anywhere in the address. If it is not, your site removed it. Put the script tag back. For the causes and fixes, see https://warplink.app/docs/tether/own-page-reference#tap-marker-lost.

## The test address

The test address is `https://<app host>/test`, with your app's link host. It works on the app's `<handle>.aplnk.to` host. Open it on an iPhone. The page shows a Tether test code and a Copy code button.

A test code starts with `wl1t_` and works for 15 minutes. It creates no link, click, install, referral or webhook event. When the SDK reads it, the SDK keeps a test receipt. Show or log the receipt in the same app run, because the SDK forgets it when the app restarts.

Send the receipt to the setup check as `tether_test_receipt`. The check accepts a receipt for 1 hour. Any request that sends a valid receipt for this app passes, so you can reuse one until it expires.

## The setup check

`verify_setup` and `GET /v1/apps/{id}/setup-check` return one row per Tether step. Each row has a status of `pass`, `fail`, `warn`, `needs_human` or `skipped`, and a `fix` when one applies. Until a link uses Tether, the rows are `skipped`, except the paste row and the referral row.

| Row | Passes when | Otherwise |
|-----|-------------|-----------|
| `tether_app` | Tether is available for the app | `fail`, with the reason |
| `tether_sdk` | Every iOS, React Native and Flutter SDK call reports 1.4.0 or newer | `warn` when a call reports an older SDK: update it. `skipped` until such a call arrives |
| `tether_link` | At least one link uses Tether | Never fails. `skipped` until a link uses Tether |
| `tether_script` | The page script ran on a site | `warn`: add the script tag to the page that links to the store and load it once |
| `tether_fallback` | Each Tether link has an iPhone fallback address | `warn`: set an iOS fallback URL on each link or on the app |
| `tether_query_preserved` | Each site kept the link's address fragment | `warn`: keep the address fragment on the redirect to your page |
| `tether_allowed_site` | Each site that ran the script is allowed | `warn`: add the site to the app's allowed sites, or remove the script |
| `tether_hosted_page` | The hosted page is on | Never fails. `skipped` when the hosted page is off |
| `tether_store` | With the hosted page off, the app has an App Store address. With it on, each Tether link has an App Store page, from its own iPhone destination or from the app address | `fail`: set the iOS App Store URL on the app, or point each link at an App Store page |
| `tether_paste` | The receipt is valid for this app | `fail`: the fix names the reason. With no receipt, `skipped` before a link uses Tether and `needs_human` after |
| `tether_referral_ios` | iPhone invitations can use Tether | `warn` when invitations are paused. `skipped` when the referral handoff is off |

When the hosted page is on, the script, fallback, query and allowed site rows are `skipped`, because that page needs none of them. When your own page is in use, the hosted page row is `skipped`.

## Stop when only people can finish

Only a phone can read a test code. With no receipt, `tether_paste` is `needs_human` once a link uses Tether, and its fix names the exact step. An agent reports this to you instead of retrying.

The check only reads your setup. Run it as often as you like, in [Test mode](https://warplink.app/docs/concepts/test-mode) or Production.

## Next steps

- [Results](https://warplink.app/docs/tether/results) to read real taps once they arrive
- [AI Agents](https://warplink.app/docs/ai-agents) to let an agent run these checks
- [Errors](https://warplink.app/docs/errors) for the Tether error codes
