# Apps

Register a mobile app with `POST /v1/apps` before creating links. An organization owns apps, and a link can belong to an app. The app stores the iOS and Android settings that WarpLink uses for deep linking. Register either platform or both, then add the other platform later if needed.

An organization with no app gets `403 APP_REQUIRED` when it tries to create a link. After registering an app, you can also create web-only Production links with no `app_id`.

## Authentication and Permissions

| Operation | Scope | Role required (dashboard-created keys) |
|-----------|-------|------------------------------------------|
| Create an app | `apps:write` | any role, including `member` (`apps:write`) |
| List apps | `apps:read` | any role, including `member` (`apps:read`) |
| Get an app | `apps:read` | any role, including `member` (`apps:read`) |
| Update an app | `apps:write` | any role, including `member` (`apps:write`) |
| Delete an app | `apps:write` | `owner` or `admin` (`apps:delete`) |

Reading, creating, and updating apps is open to every role, including `member`, which matches the dashboard's own permission matrix: anyone on the team can register an app and edit how it is wired up. Deleting an app needs the `apps:write` scope and a role that holds the `apps:delete` permission, which only `owner` and `admin` roles hold, so a key whose creator is a `member` gets `403 FORBIDDEN` on delete. For an API key with a creator, WarpLink checks that creator’s current role and membership. A key without a creator is checked for scope. Changing an app's link handle also requires a key with a creator. See [Authentication](https://warplink.app/docs/authentication) for how the two layers combine on every request.

## Plan Limits

Apps count against a per-organization limit that scales with plan:

| Plan | App limit |
|------|-----------|
| Free | 1 |
| Starter | 5 |
| Growth | 20 |
| Scale | Unlimited |
| Unlimited | Unlimited |

One "app" here covers every platform you register under it. An app with both iOS and Android settings counts as one app, including when you use the React Native or Flutter SDK. The limit is checked before validating the request body: creating past the limit fails with `403 APP_LIMIT_EXCEEDED` regardless of whether the body itself would have been valid.

## Validation and Behavior

- `ios_bundle_id` must be reverse-domain notation (for example `com.example.myapp`), up to 255 characters.
- `ios_team_id` must contain exactly 10 letters or digits. WarpLink trims surrounding spaces and converts letters to uppercase.
- `ios_app_store_id` must be numeric, up to 20 characters.
- `android_package_name` must be a valid Java package name (for example `com.example.myapp`), up to 255 characters.
- `android_sha256_fingerprints` are normalized to uppercase and validated as 32 colon-separated hex byte pairs each, up to 10 per app.
- `ios_universal_link_paths` and `android_app_links_paths` are arrays of up to 50 paths, each starting with `/`, up to 255 characters, using letters, numbers and `. _ ~ ! $ & ' ( ) * + , ; = : @ % / ? -` (for example `/products/*`). The MCP tools `create_app` and `update_app` apply the same rules. On update, the path rules, the 50-entry cap, the fingerprint cap and the 2,048-character store URL limit apply to entries you add or change. An app saved before these limits can still be renamed or edited when the request re-sends the values it already holds.
- `probabilistic_matching` is a boolean, `true` by default. Set it to `false` for routing-only mode: deep links keep working, and the server no longer matches installs by probabilistic match or raw device signals for that app, so deferred links and attribution use only the invitation token, the Play Install Referrer and the device ID repeat check. It is on update only, applies within a minute, and any role that can update the app can change it. See [Routing-only mode](https://warplink.app/docs/trust/attribution-accuracy#routing-only-mode).
- `skip_raw_for_organic_play_installs` is a boolean, `false` by default. Set it to `true` to stop matching an Android install by IP address, language and timezone when Google Play reports the install as organic, meaning found on its own. 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. It has no effect while `probabilistic_matching` is `false`. It is on update only, applies within a minute, and any role that can update the app can change it. The dashboard shows it as **Skip organic Android installs**.
- `org_id` cannot be set on update. Sending it, even unchanged, is refused with `400 IMMUTABLE_FIELD` before the rest of the body is even validated.
- A bundle ID or package name must be unique within its organization. A collision, on create or on update, is refused with `409 DUPLICATE_APP`.
- Updating an app's identifiers or paths regenerates the app's `apple-app-site-association` and Android `assetlinks.json` files automatically, so Universal Links and App Links keep working without a separate publish step. WarpLink schedules this work in the background.
- The app's icon is resolved automatically from the store IDs you provide (App Store ID, Play package name) shortly after creation. This also runs after the response and never blocks it; `icon_url` may be `null` in the `201` response. `icon_source` is `auto` or `manual`.
- Deleting an app does not delete its links. A link's `app_id` is a nullable foreign key that clears to `null` on app delete (`onDelete: "set null"`), so the link and its click history survive as a web-only link with no app. The app's affected links are automatically resynced afterward so nothing keeps pointing at deep link configuration that no longer exists. The SDK keys tied to the app are deleted with it. Deleting a Test app also deletes its Test links.

## Create an App

POST /apps: Create an app

Send `name` (1 to 255 characters) and at least one of `ios_bundle_id` or `android_package_name`. Store URLs, link paths and an explicit `link_handle` are optional.

### Worked Example

Set `WARPLINK_API_KEY` to an [API key](https://warplink.app/docs/authentication) with `apps:write`. Replace the sample name and bundle ID with your app's values. Replace the sample `Idempotency-Key` for each distinct create operation, and reuse it with the same body when retrying that operation.

```bash
curl --fail-with-body https://api.warplink.app/v1/apps \
  -H "Authorization: Bearer ${WARPLINK_API_KEY}" \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: field-notes-create-01' \
  --data '{"name":"Field Notes","ios_bundle_id":"com.example.fieldnotes","ios_team_id":"ABCDE12345"}'
```

Example `201 Created` response for a Production app. Save `id` for later requests. Use `link_domain` for the full link hostname. The server returns the app object directly.

```json
{
  "id": "d3421a39-7c90-495e-a29d-556eab478308",
  "org_id": "f2608eaa-0226-4eea-94b8-4698d8035cc6",
  "name": "Field Notes",
  "ios_bundle_id": "com.example.fieldnotes",
  "ios_team_id": "ABCDE12345",
  "ios_app_store_id": null,
  "ios_app_store_url": null,
  "ios_universal_link_paths": null,
  "android_package_name": null,
  "android_sha256_fingerprints": null,
  "android_play_store_url": null,
  "android_app_links_paths": null,
  "icon_url": null,
  "icon_source": "auto",
  "probabilistic_matching": true,
  "skip_raw_for_organic_play_installs": false,
  "ios_recovery_enabled": false,
  "referral_credit_window": "7d",
  "count_existing_users": false,
  "tether": true,
  "tether_new_links": false,
  "tether_hosted_page": false,
  "referral_hosted_page": false,
  "link_handle": "field-notes",
  "link_domain": "field-notes.aplnk.to",
  "legacy_apex_enabled": false,
  "default_link_domain": "field-notes.aplnk.to",
  "default_link_domain_available": true,
  "allowed_link_domains": ["field-notes.aplnk.to"],
  "previous_link_handle": null,
  "previous_link_domain": null,
  "rename_period_ends_at": null,
  "rename_period_extensions": 0,
  "created_at": "2026-12-01T14:00:00.000Z",
  "updated_at": "2026-12-01T14:00:00.000Z"
}
```

Send an `Idempotency-Key` header to make a retry safe, and `?dry_run=true` to check the request without creating the app. A dry run returns `{ "dry_run": true, "result": ... }` with a null `id` and a `link_handle_note` that says the handle is derived from the app name and the final handle is chosen at create. Both work as described in [Safe retries and dry runs](https://warplink.app/docs/api#safe-retries-and-dry-runs).

## List Apps

GET /apps: List apps

Filter by name with `search` (up to 200 characters, case-insensitive). Set `limit` to 1 through 100 (default 20). Set `offset` to the number of matching records to skip (default 0).

Use a key with `apps:read`.

```bash
curl --fail-with-body 'https://api.warplink.app/v1/apps?search=journal&limit=20&offset=0' \
  -H "Authorization: Bearer ${WARPLINK_API_KEY}"
```

The `200 OK` response puts matching app objects in `data`. Each item has the same fields as the create response. If nothing matches, the API returns an empty list:

```json
{
  "data": [],
  "pagination": {
    "total": 0,
    "limit": 20,
    "offset": 0,
    "has_more": false
  }
}
```

When `has_more` is true, add `limit` to `offset` to request the next page.

## Get an App

GET /apps/{id}: Get an app

Set `WARPLINK_APP_ID` to the `id` from create or list. Use a key with `apps:read`.

```bash
curl --fail-with-body "https://api.warplink.app/v1/apps/${WARPLINK_APP_ID}" \
  -H "Authorization: Bearer ${WARPLINK_API_KEY}"
```

The `200 OK` response has the same fields as the create response plus `referral_readiness`. Unset platform fields are `null`. For the iOS app in the create example, with no store URL and no detected SDK requests, the extra field is:

```json
{
  "referral_readiness": {
    "ios": { "ready": false, "missing": "app_store_url" },
    "android": null,
    "sdk": {
      "status": "none",
      "required_version": "1.4.0",
      "capable_share": null,
      "older_builds": false
    },
    "can_enable": false,
    "missing": ["app_store_url", "sdk_version"],
    "iphone_invitations_paused": false
  }
}
```

## Update an App

PATCH /apps/{id}: Update an app

Send at least one field to change. Omitted fields keep their stored values. Send `null` to clear a nullable platform field. At least one of `ios_bundle_id` or `android_package_name` must remain set.

This example adds Android to the existing iOS app. Use a key with `apps:write` and set `WARPLINK_APP_ID` to the app ID. Replace the sample package name with yours.

```bash
curl --fail-with-body -X PATCH "https://api.warplink.app/v1/apps/${WARPLINK_APP_ID}" \
  -H "Authorization: Bearer ${WARPLINK_API_KEY}" \
  -H 'Content-Type: application/json' \
  --data '{"android_package_name":"com.example.fieldnotes"}'
```

The `200 OK` response returns the full app detail, with `android_package_name` set and `updated_at` updated. The `referral_readiness.android` field now reports `{"ready":false,"missing":"sha256_fingerprint"}` until you add the signing certificate’s SHA-256 value.

## Common Errors

| Status and code | What to check |
|-----------------|---------------|
| `400 INVALID_ID` | Use the app UUID from the list or create response. |
| `400 VALIDATION_ERROR` | Check the JSON body or list parameters. When present, `error.details.fields` gives the field names and validation messages. |
| `400 IMMUTABLE_FIELD` | Remove `org_id` from the PATCH body. |
| `401 UNAUTHORIZED` | Supply a valid API key in the `Authorization: Bearer` header. |
| `403 FORBIDDEN` | Check the key's scope and, for a key with a creator, that person's current role and membership. |
| `403 APP_LIMIT_EXCEEDED` | Check the [app limit for your plan](#plan-limits) before creating another app. |
| `403 UNCLAIMED_LIMIT` | If no person has claimed the agent-created workspace, claim it before adding a second app. |
| `403 ATTRIBUTED_KEY_REQUIRED` | Use a key with a creator to change the link handle. |
| `404 NOT_FOUND` | Check that the app belongs to the organization and environment of the key. |
| `409 DUPLICATE_APP` | Look up the existing app with the same iOS bundle ID or Android package name in the organization. |
| `409 RECOVERY_PREREQUISITES_MISSING` | Set a valid App Store URL before [enabling the iOS referral handoff](#referral-settings). |
| `409 APP_HANDLE_TAKEN` | Choose a handle that does not belong to another app. |
| `409 APP_HANDLE_HELD` | Choose another handle or check `error.details.available_at` for when the hold ends. |
| `409 APP_LINK_STATE_CHANGED` | Read the app again before retrying a handle or default domain change. |
| `409 RENAME_PERIOD_OPEN` | Check the open rename period before requesting another rename. |
| `409 RENAME_PERIOD_NOT_OPEN` | A rename extension requires an open period. |
| `409 RENAME_EXTENSION_LIMIT` | The app has already used both extensions. |
| `409 CONFIRMATION_REQUIRED` | Review the links on the old host before sending `confirm: true`. |
| `409 IDEMPOTENCY_IN_PROGRESS` | Wait for the first create request using this key to finish. |
| `422 UNSAFE_DESTINATION` | Check the store URL rejected in the error details. |
| `422 IDEMPOTENCY_KEY_REUSED` | Use the original body to retry, or a new key for a different create request. |
| `429 RATE_LIMIT_EXCEEDED` | Wait for the delay in `Retry-After`. See [Rate Limiting](https://warplink.app/docs/rate-limiting). |

See [Errors](https://warplink.app/docs/errors) for the error format and [Link Subdomain](#link-subdomain) for rename-specific errors.

## Referral Settings

The app response includes the referral settings below. Change them with `PATCH /v1/apps/{id}`.

| Field | Type | Notes |
|-------|------|-------|
| `ios_recovery_enabled` | boolean | Turns on the iPhone referral handoff page. Android needs no switch. Defaults to `false` |
| `referral_credit_window` | `24h`, `7d` or `30d` | How long after the tap an install still credits the referrer. Defaults to `7d` |
| `count_existing_users` | boolean | `true` lets a person who already has the app count as a referral. Defaults to `false` |
| `referral_hosted_page` | boolean | Uses the hosted page for iPhone referral invitations. Defaults to `false` for a new app. |

In the dashboard, `ios_recovery_enabled` is the switch **Offer referral handoff on iOS**, and the setup checks `ios_recovery_store_url` and `ios_recovery_sdk` report on it.

`GET /v1/apps/{id}` and the update response also return `referral_readiness`, so you can see what is in place before you turn the handoff on:

- `ios` and `android`: each is `null` if that platform is absent. Otherwise, it contains `ready` and `missing`. A ready platform has `missing: null`. A platform that needs setup reports `app_store_url` for iOS or `sha256_fingerprint` for Android.
- `sdk`: `status` (`none`, `older`, `mixed` or `current`), the `required_version`, `capable_share` (the percent of iOS SDK requests in the last 30 days from that version or later), and `older_builds`.
- `can_enable`: `true` when both the iOS bundle ID and a valid App Store URL are set.
- `missing`: what is absent, from `app_store_url` and `sdk_version`. Only `app_store_url` blocks the switch. `sdk_version` is a warning here, and the `409 RECOVERY_PREREQUISITES_MISSING` response never lists it.
- `iphone_invitations_paused`: `true` when the iOS handoff is on and Tether is off for the app. iPhone taps then go to the link's iPhone destination with no invitation page. Set `tether` to `true` to serve invitations again.

Setting `ios_recovery_enabled` to `true` without an App Store URL returns `409 RECOVERY_PREREQUISITES_MISSING`, with `details.missing` set to `["app_store_url"]`. A missing iOS build on SDK 1.4.0 or newer is a warning, never a refusal: the dashboard shows it, and new iPhone installs from referral links cannot read the invitation until such a build ships. While the handoff is already on, a save that changes `ios_bundle_id` or `ios_app_store_url` and leaves no valid App Store URL returns the same `409` with `details.missing` set to `["app_store_url"]`, so the handoff never runs without a store to send people to. An unknown `referral_credit_window` value returns `400 VALIDATION_ERROR`. Through MCP, `get_app` and `update_app` carry the same fields. See [Referrals](https://warplink.app/docs/guides/referrals) for the full setup.

### Referral Page

Each app has an invitation page that people see when they open a referral link without the app. Read it with `GET /v1/apps/{id}/referral-page` and save it with `PUT /v1/apps/{id}/referral-page`. A save needs the `apps:write` scope and is recorded in the audit log. The MCP tools `get_referral_page` and `update_referral_page` do the same.

GET /apps/{id}/referral-page: Get an app's referral page

PUT /apps/{id}/referral-page: Update an app's referral page

### Tether

Tether carries a tapped link through an iPhone install. It needs SDK 1.4.0 or newer in the app. An app has the `tether`, `tether_new_links` and `tether_hosted_page` fields, and a link has a `tether` field. `PATCH /v1/apps/{id}` takes the long names `tether_new_links` and `tether_hosted_page`. `PUT /v1/apps/{id}/tether-page` takes the same two settings as `new_links` and `hosted_page`. Each pair is one setting, so either call changes it. The `direct_rule` field of `tether-page` and the `tether_direct_rule` field of a link choose what the app opens for a visitor who came to your page with no link tap: `open_link` (the default) or `tap_only`. A link value of `null` follows the app. Under `open_link`, direct codes are limited to 1,000 an hour for each app, and a request over the limit returns `429 TETHER_RATE_LIMITED`. Setting `tether` to `true` for a link with no app, an app with no iOS bundle ID, or an app with Tether turned off returns `422 TETHER_NOT_AVAILABLE`. Read and save the hosted page and the allowed sites with the `tether-page` endpoints, list the sites the script saw with `tether-sites`, and read the funnel with `tether-results`. The MCP tools `get_tether_page`, `update_tether_page`, `list_tether_sites`, `dismiss_tether_site` and `get_tether_results` do the same. See [Tether](https://warplink.app/docs/tether) for the full setup.

GET /apps/{id}/tether-page: Get an app's Tether settings

PUT /apps/{id}/tether-page: Update an app's Tether settings

GET /apps/{id}/tether-sites: List an app's Tether sites

DELETE /apps/{id}/tether-sites/observations: Dismiss a seen Tether site

GET /apps/{id}/tether-results: Get an app's Tether results

## Delete an App

DELETE /apps/{id}: Delete an app

Deletion is permanent. Check which links use the app before deleting it. Production links keep their click history and become web-only. SDK keys tied to the app are deleted, so create a new key for a replacement app. A Test app takes its Test links with it.

Use a key authorized to delete apps and set `WARPLINK_APP_ID` to the app to delete.

```bash
curl --fail-with-body -X DELETE "https://api.warplink.app/v1/apps/${WARPLINK_APP_ID}" \
  -H "Authorization: Bearer ${WARPLINK_API_KEY}"
```

The `200 OK` response contains the deleted app with the same fields as the create response.

## Link Subdomain

Every app has its own link subdomain, `{link_handle}.aplnk.to`, on every plan. An app that existed before subdomains keeps `aplnk.to` for good: links already on it keep working and keep opening your app, and `aplnk.to` stays one of the app's allowed link domains. Nothing moves on a date, and no link changes address unless you change it. An app created after the change uses its own subdomain (or a custom domain) for new links. Web-only links (links with no app, whether existing or created later in an org that has an app) default to the shared `aplnk.to` domain (a custom domain is also allowed). Registering an app does not add deep linking to them.

An app response carries these fields:

| Field | Type | Notes |
|-------|------|-------|
| `link_handle` | string | The subdomain label. Writable on create, and on update as a rename |
| `link_domain` | string | The full host, read only |
| `legacy_apex_enabled` | boolean | True for an app that existed before subdomains. It never changes. Read only |
| `default_link_domain` | string | The hostname a new link gets when the request names no `domain`. Change it with the link domain endpoint below |
| `default_link_domain_available` | boolean | False when the saved default is a custom domain that is no longer live. Read only |
| `allowed_link_domains` | string[] | The hostnames a new link may use, the default first when it is available. Read only |
| `previous_link_handle` | string or null | The old subdomain label while a rename period is open. Read only |
| `previous_link_domain` | string or null | The full old host while a rename period is open. Read only |
| `rename_period_ends_at` | date-time or null | The date shown for the rename period. The old host keeps working. Read only |
| `rename_period_extensions` | integer, 0 to 2 | How many times the rename period was extended. Read only |

On create, leave `link_handle` out and we derive it from the app name, with the bundle ID or package name as the fallback. The handle is checked against every other app's subdomain.

Changing `link_handle` on update follows these rules:

- Send `expected_link_handle` with every `link_handle`: the handle you last read. If the app's handle is another, the request gets `409 APP_LINK_STATE_CHANGED` and nothing is written. Sending the current handle changes nothing except confirming the name once.
- An app whose subdomain no link and no redirect uses changes it in a plain edit on every plan, as often as you like. There is no `confirm` and no rename period. The old name is held for 7 days: only your app can take it back before then. If a link starts using the subdomain first, the request gets `409 APP_LINK_STATE_CHANGED`.
- Once a link or redirect uses the subdomain, a rename is still allowed, one at a time. It needs `confirm: true` and works on every plan, Free included. Links you already made stay on the old subdomain.
- Through an API key, the key needs a creator. A key with no creator gets `403 ATTRIBUTED_KEY_REQUIRED`. A key whose creator has left the organization gets `403 FORBIDDEN`.
- A rename that starts a period is refused with `409 RENAME_PERIOD_OPEN` while an earlier rename period is open, including a rename back to the old name. `details` carries `previous_link_handle` and `rename_period_ends_at`.
- When links use the old host, send `confirm: true`. Without it the request gets `409 CONFIRMATION_REQUIRED` with `links_on_old_host` in `details`. After such a rename the old host keeps opening the app. If its links move to the new host, they keep their slug and their old URLs redirect.
- The slug `test` is reserved on app subdomains: `https://{link_domain}/test` is the setup test page, so no link can use it there.
- `link_handle: null` is a `400 VALIDATION_ERROR`. Every app keeps a subdomain.

Through MCP, the `update_app` tool takes the same `link_handle`, `expected_link_handle` and `confirm` fields and follows the same rules. A call that needs the confirmation returns the link count and asks you to retry with `confirm: true`. Call it once without `confirm`. Tell the user that the old subdomain keeps opening the app, that if its links move to the new subdomain their old URLs redirect, and that app builds need the new subdomain. Set `confirm` only after they agree. The `extend_subdomain_rename` tool extends a rename period. The `list_link_moves` tool lists the links that still use the previous subdomain and `set_link_move_choice` sets the choice for one of them, like the endpoints below.

### Choose the Default Link Domain

A link that names no `domain` gets the app's `default_link_domain`. An app that existed before subdomains starts with the domain of its most recent link, or `aplnk.to` when that domain cannot serve new links, and any member of the organization can change it to `aplnk.to` (legacy apps only), the app's own `link_domain`, or a live custom domain, and change it back at any time. Existing links keep their addresses and no redirect is created. Send the `link_handle` and `default_link_domain` you last read, and `confirm: true`. A change made meanwhile returns `409 APP_LINK_STATE_CHANGED`. The app's `allowed_link_domains` lists the valid choices.

When the default is a custom domain that is no longer live, `default_link_domain_available` is `false` and `POST /v1/links` with no `domain` returns `409 DEFAULT_DOMAIN_UNAVAILABLE` with `details.allowed_link_domains`. Name an allowed domain, or choose a new default. An explicit `domain` is never replaced.

Through MCP, the `set_app_link_domain` tool does the same and needs the `apps:write` scope.

PUT /apps/{id}/link-domain: Set an app's default link domain

### Extend a Rename

After a rename the old subdomain keeps working. The rename period has an end date. Each call adds 1 month to it, up to 2 times, and only while the period is open.

POST /apps/{id}/extend-subdomain-rename: Extend an app's rename period

### Link Moves

After a rename, the links still on the old subdomain can move to the new one, and each old URL then redirects with a permanent `301`. The old address keeps working, and `rename_period_ends_at` is the date shown for the rename period. Links on `aplnk.to` never move.

During a rename period, a new link on the app's subdomain cannot take a slug that one of the app's old-host links still has. `POST /v1/links` returns `409 SLUG_TAKEN` with the message "You already have yourapp.aplnk.to/abc, so this address is held for it. Pick another slug." and `details.held_by` with the old `domain` and `slug`. The dashboard and the MCP `create_link` tool refuse the same slug. A link whose slug was already taken on the target is a conflict. It stays where it is unless you choose a new slug for it, and you can also mark it to keep. Set the choice with `PUT /v1/links/{id}/move-choice` (see [Links](https://warplink.app/docs/api/links)).

GET /apps/{id}/link-moves: List an app's link moves

`status` is `scheduled` (a move is planned, with `moves_at` set when we have a date) or `moving` (the move is running).

## SDK Setup Steps

GET /apps/{id}/sdk-setup: Get the SDK setup steps for an app

`platform` is required: `ios`, `android`, `react-native`, or `flutter`. The response is what a person or an AI agent needs to wire the SDK into the project:

- `install` and `configure`: the install step with the current SDK version, and the configure snippet.
- `sdk_key`: where the key goes. `placeholder` is `YOUR_SDK_KEY`, and `how_to_get` names the `create_key` call that makes one tied to this app. The response never holds a key.
- `link_domains`: the host to pass to the SDK, every host the build lists, the domains allowed for new links, and the default.
- `ios`: the bundle ID, team ID, and one `applinks:<host>` line per host for Associated Domains. Exact hosts, never a wildcard.
- `android`: the package name, the SHA256 fingerprints, and an intent filter with `autoVerify` for the same hosts.
- `test_address`: `https://<your app host>/test`, the page that confirms the host serves your app's link files.
- `next_step`: the one thing to do next.
- `tether`: the Tether setup for iOS, React Native and Flutter. It is `null` for Android.
- `missing`: the app fields this platform needs that the app does not have yet, each with a fix. It is empty when the app is complete.

The MCP tool `get_sdk_setup` returns the same data. It needs the `apps:read` scope.

## Setup Check

GET /apps/{id}/setup-check: Check an app's setup

The call is read only: it writes nothing and records no audit entry. It runs these checks:

| `id` | What it checks |
|------|----------------|
| `app_config` | The app has the fields the platform needs |
| `well_known_files` | Each host serves the app's `apple-app-site-association` and `assetlinks.json` content |
| `custom_domain_serving` | Each custom domain is active and answers for the link files |
| `sdk_key` | An SDK key exists that this app can use |
| `sdk_connected` | An SDK has reached WarpLink as this app |
| `sdk_version` | The SDK in use is the current release |
| `test_link` | The app has an active link |
| `first_click` | A click on one of the app's links is recorded |
| `ios_entitlement` | The Associated Domains lines are in the Xcode project |
| `android_manifest` | The intent filter is in `AndroidManifest.xml` |
| `ios_recovery_store_url` | The iOS app has a valid App Store URL, which the iPhone referral handoff needs. Skipped while the handoff is off and the URL is missing |
| `ios_recovery_sdk` | An iOS build on SDK 1.4.0 or newer reached WarpLink in the last 30 days, with the share of iOS requests on that version. Skipped while the handoff is off and no such build was seen |
| `ios_recovery_tether` | Listed only while it holds: the iPhone referral handoff is on and Tether is off for the app. Status `warn` |
| `android_recovery_fingerprint` | The Android app has a signing certificate SHA256 fingerprint. Android referral handoff is automatic and needs nothing else |

Each check has a `status`:

| Status | Meaning |
|--------|---------|
| `pass` | The check is met |
| `fail` | Something is wrong. `fix` names the call or setting that clears it |
| `warn` | Likely fine, worth a look. `fix` says what to do |
| `needs_human` | Only a person can finish it: a tap on a phone, a look at the project, or claiming the workspace (taking it over from the claim link emailed to a person). `fix` says exactly what to do |
| `skipped` | There was nothing to check yet |

For an app with an iOS side, the response also lists checks whose `id` starts with `tether_`. They report on Tether for the app and its links. See [Tether](https://warplink.app/docs/tether).

`ready` is `true` when no check failed. A `warn`, `needs_human`, or `skipped` check does not block it. `needs_human` repeats the checks that wait for a person, so a caller that has fixed every `fail` can report what is left. The MCP tool `verify_setup` returns the same data. Add `?platform=` to limit the checks to one platform.

## FAQ

**Can an app support both iOS and Android?**
Yes, and it's the common case. Set `ios_bundle_id` and/or `android_package_name` on the same app row; a React Native or Flutter app typically registers both.

**What happens to links when their app is deleted?**
They aren't deleted. Their `app_id` clears to `null`, and the link keeps working as a web-only link, with its click history intact. It just loses deep linking until it's pointed at a different app.

**Do I need to publish `apple-app-site-association` or `assetlinks.json` myself?**
No. Both files regenerate automatically whenever an app's identifiers, fingerprints, or link paths change, and they're served from your domain without a separate deploy step.

**Why is `icon_url` still null right after creating an app?**
WarpLink looks up the icon in the background. Use `GET /v1/apps/{id}` later to check whether `icon_url` is set.

**How do I turn off probabilistic matching for an app?**
Send `PATCH /v1/apps/{id}` with `{ "probabilistic_matching": false }`, or use the **Install matching** switch in the app's settings. Links keep redirecting and opening your app. Installs are then matched only by deterministic signals. See [Routing-only mode](https://warplink.app/docs/trust/attribution-accuracy#routing-only-mode).

**Can a member role update app configuration?**
Yes. Every role can read, create, and update apps, including the link address and the default link domain. Deleting an app requires the `apps:delete` permission, which only `owner` and `admin` roles hold.
