Apps
Register and manage iOS and Android apps with the WarpLink REST API. See request and response examples, required scopes, app fields, and common errors.
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 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_idmust be reverse-domain notation (for examplecom.example.myapp), up to 255 characters.ios_team_idmust contain exactly 10 letters or digits. WarpLink trims surrounding spaces and converts letters to uppercase.ios_app_store_idmust be numeric, up to 20 characters.android_package_namemust be a valid Java package name (for examplecom.example.myapp), up to 255 characters.android_sha256_fingerprintsare normalized to uppercase and validated as 32 colon-separated hex byte pairs each, up to 10 per app.ios_universal_link_pathsandandroid_app_links_pathsare arrays of up to 50 paths, each starting with/, up to 255 characters, using letters, numbers and. _ ~ ! $ & ' ( ) * + , ; = : @ % / ? -(for example/products/*). The MCP toolscreate_appandupdate_appapply 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_matchingis a boolean,trueby default. Set it tofalsefor 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.skip_raw_for_organic_play_installsis a boolean,falseby default. Set it totrueto 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 whileprobabilistic_matchingisfalse. 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_idcannot be set on update. Sending it, even unchanged, is refused with400 IMMUTABLE_FIELDbefore 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-associationand Androidassetlinks.jsonfiles 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_urlmay benullin the201response.icon_sourceisautoormanual. - Deleting an app does not delete its links. A link's
app_idis a nullable foreign key that clears tonullon 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
/appsCreate an app
Parameters
| Name | Type | In | Description |
|---|---|---|---|
Idempotency-Key | string | header | A unique string of 1 to 255 printable ASCII characters for this create. Sending the same request again with the same key returns the first response, with the header `Idempotent-Replayed: true`, and creates nothing new. A key is remembered for 24 hours for your organization, this API key and this endpoint. The same key with a different body is refused with `422 IDEMPOTENCY_KEY_REUSED`. The same key while the first request still runs is refused with `409 IDEMPOTENCY_IN_PROGRESS`. A `5xx` or `429` response is not remembered, so a retry runs again. A replay of a response larger than 64 KB answers `409 IDEMPOTENCY_RESULT_TOO_LARGE`: read the resource with the get call. |
dry_run | boolean | query | When `true`, the call runs every check a real call runs (authentication, role, validation, plan limits, link safety, and the slug, handle and duplicate checks) and answers `200` with `{ "dry_run": true, "result": ... }`, where `result` is what the call would return. Nothing is saved, synced, recorded in the audit log, and no idempotency key is stored. A refusal is the same error a real call returns. |
Request Body
| Field | Type | Description |
|---|---|---|
name* | string | |
ios_bundle_id | string | Reverse-domain notation, e.g. com.example.myapp |
ios_team_id | string | Apple Team ID, e.g. ABCDE12345 |
ios_app_store_id | string | Numeric App Store ID |
ios_app_store_url | string | |
ios_universal_link_paths | string[] | Up to 50 paths, each starting with / and at most 255 characters, using letters, numbers and . _ ~ ! $ & ' ( ) * + , ; = : @ % / ? -. |
android_package_name | string | Java package name, e.g. com.example.myapp |
android_sha256_fingerprints | string[] | Up to 10 SHA-256 certificate fingerprints, 32 colon-separated hex byte pairs each. |
android_play_store_url | string | |
android_app_links_paths | string[] | Up to 50 paths, each starting with / and at most 255 characters, using letters, numbers and . _ ~ ! $ & ' ( ) * + , ; = : @ % / ? -. |
link_handle | string | The app's link subdomain, as in link_handle.aplnk.to. 3 to 30 characters: lowercase letters, numbers and hyphens, not starting or ending with a hyphen. Reserved names such as www, api, app and docs are refused. Defaults to a name derived from the app name, with a suffix added if that name is taken. Uppercase letters are accepted and stored in lowercase. A value you send that another app already holds returns 409 APP_HANDLE_TAKEN, and one that was just released returns 409 APP_HANDLE_HELD with details.available_at. |
Responses
200Dry run (`dry_run=true`): every check passed. `result` is the app the call would create, with a null `id`, and nothing was saved.
| Field | Type | Description |
|---|---|---|
dry_run* | "true" | |
result* | object | The app the call would create, in the shape of the App object. `id` is null. `link_handle_note` says the handle was derived from the app name and is final only at create. |
201App created. A replayed answer to the same `Idempotency-Key` carries the header `Idempotent-Replayed: true`.
| Field | Type | Description |
|---|---|---|
id | string | |
org_id | string | |
name | string | |
ios_bundle_id | string | null | |
ios_team_id | string | null | |
ios_app_store_id | string | null | |
ios_app_store_url | string | null | |
ios_universal_link_paths | array | null | |
android_package_name | string | null | |
android_sha256_fingerprints | array | null | |
android_play_store_url | string | null | |
android_app_links_paths | array | null | |
icon_url | string | null | |
icon_source | "auto" | "manual" | |
probabilistic_matching | boolean | 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 | boolean | 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 | boolean | True when the iOS referral handoff page is on for this app. Android apps need no switch. Defaults to false. |
referral_credit_window | "24h" | "7d" | "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. |
link_handle | string | The lowercase subdomain label for this app's links, for example acme in acme.aplnk.to. Every app has one. |
link_domain | string | The full host derived from link_handle, for example acme.aplnk.to. |
legacy_apex_enabled | boolean | 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 | string | 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 | boolean | 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 | string[] | 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 | string | null | The app's old subdomain label while a rename period is open. null otherwise. |
previous_link_domain | string | null | The full old host while a rename period is open, for example oldname.aplnk.to. It keeps opening the app. |
rename_period_ends_at | string | null | 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 | integer | How many times the open rename period was extended by 1 month. At most 2. |
tether | boolean | Whether links of this app can use Tether. On for every app on every plan until you turn it off. |
tether_new_links | boolean | Whether new links of this app start with Tether on. |
tether_hosted_page | boolean | 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. |
referral_hosted_page | boolean | Whether iPhone referral invitations use the hosted page. |
created_at | string | |
updated_at | string |
400Validation error
| Field | Type | Description |
|---|---|---|
error* | object |
401Unauthorized
| Field | Type | Description |
|---|---|---|
error* | object |
403Forbidden. UNCLAIMED_LIMIT: a workspace that no human has claimed yet holds at most 1 app.
| Field | Type | Description |
|---|---|---|
error* | object |
409Duplicate bundle ID or package name, or link_handle is already taken (APP_HANDLE_TAKEN). IDEMPOTENCY_IN_PROGRESS: a request with the same `Idempotency-Key` is still running. Retry with the same key.
| Field | Type | Description |
|---|---|---|
error* | object |
422IDEMPOTENCY_KEY_REUSED: the `Idempotency-Key` was used with a different request body.
| Field | Type | Description |
|---|---|---|
error* | object |
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 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.
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.
{
"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.
List Apps
/appsList apps
Parameters
| Name | Type | In | Description |
|---|---|---|---|
limit | integer | query | |
offset | integer | query | |
search | string | query |
Responses
200List of apps
| Field | Type | Description |
|---|---|---|
data | object[] | |
pagination | object |
401Unauthorized
| Field | Type | Description |
|---|---|---|
error* | object |
403Forbidden
| Field | Type | Description |
|---|---|---|
error* | object |
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.
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:
{
"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
/apps/{id}Get an app
Parameters
| Name | Type | In | Description |
|---|---|---|---|
id* | string | path |
Responses
200App details
401Unauthorized
| Field | Type | Description |
|---|---|---|
error* | object |
403Forbidden
| Field | Type | Description |
|---|---|---|
error* | object |
404Not found
| Field | Type | Description |
|---|---|---|
error* | object |
Set WARPLINK_APP_ID to the id from create or list. Use a key with apps:read.
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:
{
"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
/apps/{id}Update an app
Parameters
| Name | Type | In | Description |
|---|---|---|---|
id* | string | path |
Request Body
| Field | Type | Description |
|---|---|---|
name | string | |
ios_bundle_id | string | null | |
ios_team_id | string | null | |
ios_app_store_id | string | null | |
ios_app_store_url | string | null | |
ios_universal_link_paths | array | null | Up to 50 paths, each starting with / and at most 255 characters, using letters, numbers and . _ ~ ! $ & ' ( ) * + , ; = : @ % / ? -. |
android_package_name | string | null | |
android_sha256_fingerprints | array | null | Up to 10 SHA-256 certificate fingerprints, 32 colon-separated hex byte pairs each. |
android_play_store_url | string | null | |
android_app_links_paths | array | null | Up to 50 paths, each starting with / and at most 255 characters, using letters, numbers and . _ ~ ! $ & ' ( ) * + , ; = : @ % / ? -. |
probabilistic_matching | boolean | Set false to turn on routing-only mode for this app, true to turn probabilistic matching back on. The change applies to the match endpoint within a minute. Links already shared keep working either way. |
skip_raw_for_organic_play_installs | boolean | Set true to skip the IP address, language and timezone match for an Android install that Google Play reports as organic (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. Has no effect while probabilistic_matching is false. The change applies to the match endpoint within a minute. |
ios_recovery_enabled | boolean | Turn the iOS referral handoff page on or off. Turning it on needs a valid App Store URL on the iOS app, otherwise the request 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 only a warning in referral_readiness and never blocks the request. While it is on, clearing or invalidating ios_bundle_id or ios_app_store_url returns the same 409 (app_store_url). The SDK share never turns an enabled switch off. |
referral_credit_window | "24h" | "7d" | "30d" | How long after the tap an install still credits the referrer. Applies to taps after the save. Any other value, including a longer window or null, returns 400 VALIDATION_ERROR with the message Use one of 24h, 7d, 30d. |
count_existing_users | boolean | Set true to let a person who already has the app count as a referral. |
link_handle | string | The subdomain label for this app: 3 to 30 characters, lowercase letters, numbers and hyphens, not starting or ending with a hyphen. Reserved names such as www, api, app, docs and test are refused. Uppercase letters are accepted and stored in lowercase. It needs an API key that has a creator, and expected_link_handle. Sending the current label confirms it. An unused subdomain (no link and no redirect uses it) changes on any plan at once, with no confirmation and no rename period, and the old name is held for 7 days: only this app can take it back before then. Once links or redirects use it, one more rename is allowed on every plan, needs confirm: true and keeps the old subdomain opening the app (rename_period_ends_at is not a deadline); if its links move to the new subdomain, their old URLs redirect. Rejected with 409 RENAME_PERIOD_OPEN while an earlier rename period is open. Checked for uniqueness against every app subdomain. |
expected_link_handle | string | The link_handle the app has now, as you last read it. Required whenever link_handle is sent. A different current handle returns 409 APP_LINK_STATE_CHANGED and writes nothing. |
confirm | boolean | Set to true to rename while links still use the old host. Without it the request returns 409 CONFIRMATION_REQUIRED with details.links_on_old_host. Not needed for an unused subdomain. |
tether | boolean | Turn Tether on or off for the app. Turning it on needs an iOS bundle ID, otherwise the request is refused with 422 TETHER_NOT_AVAILABLE. Turning it off stops Tether on every link of the app. Hosted page, design and allowed sites are set with `PUT /v1/apps/{id}/tether-page`. |
tether_new_links | boolean | Set true to start every new link of the app with Tether on (off by default). It never changes a link that already exists. The same setting as `new_links` on `PUT /v1/apps/{id}/tether-page`. |
tether_hosted_page | boolean | Set true to open the hosted Tether page from links that have Tether on (off by default). Needs an iOS bundle ID and an App Store URL, otherwise the call fails with TETHER_HOSTED_PAGE_NEEDS_IOS. The same setting as `hosted_page` on `PUT /v1/apps/{id}/tether-page`. |
referral_hosted_page | boolean | Set true to send iPhone referral invitations through the hosted page (off by default for a new app). Apps that already use the iOS referral handoff move to it automatically. |
Responses
200Updated app
400Validation error. VALIDATION_ERROR with the message Use one of 24h, 7d, 30d. for a referral_credit_window outside those values.
| Field | Type | Description |
|---|---|---|
error* | object |
401Unauthorized
| Field | Type | Description |
|---|---|---|
error* | object |
403Forbidden. ATTRIBUTED_KEY_REQUIRED when the API key has no creator and link_handle is sent. FORBIDDEN when the key lacks apps:write, or its creator is no longer in the organization.
| Field | Type | Description |
|---|---|---|
error* | object |
404Not found
| Field | Type | Description |
|---|---|---|
error* | object |
409RECOVERY_PREREQUISITES_MISSING when ios_recovery_enabled would be on without an App Store URL; details.missing lists app_store_url. DUPLICATE_APP for a bundle ID or package name collision. APP_HANDLE_TAKEN when link_handle is already taken. APP_HANDLE_HELD when link_handle was just released and is held for 7 days (details.available_at). RENAME_PERIOD_OPEN while an earlier rename period is open (details.previous_link_handle and details.rename_period_ends_at). CONFIRMATION_REQUIRED when links use the old host and confirm is not true; details.links_on_old_host is the link count. APP_LINK_STATE_CHANGED when expected_link_handle is not the current handle, or when a link started to use the subdomain before an unused-subdomain change was written.
| Field | Type | Description |
|---|---|---|
error* | object |
422TETHER_NOT_AVAILABLE: `tether` is true for an app with no iOS bundle ID.
| Field | Type | Description |
|---|---|---|
error* | object |
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.
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 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. |
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. |
See Errors for the error format and 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:
iosandandroid: each isnullif that platform is absent. Otherwise, it containsreadyandmissing. A ready platform hasmissing: null. A platform that needs setup reportsapp_store_urlfor iOS orsha256_fingerprintfor Android.sdk:status(none,older,mixedorcurrent), therequired_version,capable_share(the percent of iOS SDK requests in the last 30 days from that version or later), andolder_builds.can_enable:truewhen both the iOS bundle ID and a valid App Store URL are set.missing: what is absent, fromapp_store_urlandsdk_version. Onlyapp_store_urlblocks the switch.sdk_versionis a warning here, and the409 RECOVERY_PREREQUISITES_MISSINGresponse never lists it.iphone_invitations_paused:truewhen 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. Settethertotrueto 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 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.
/apps/{id}/referral-pageGet an app's referral page
Returns every field of the page a person sees before the store when they open a referral link without the app, with an is_default flag per field. Needs the apps:read scope.
Parameters
| Name | Type | In | Description |
|---|---|---|---|
id* | string | path |
Responses
200The referral page
| Field | Type | Description |
|---|---|---|
app_id | string | |
logo_version | integer | Changes with every logo upload. 0 until the first one. |
enabled | boolean | Follows the app's iOS referral handoff switch. Read only: ignored on a save. |
logo | string | `app-icon`, `none`, or a PNG, JPEG or WebP image of at most 1 MB as a `data:image/...;base64,` URL. |
show_name | boolean | Show the app name beside the logo. |
accent | string | Six-digit hex colour for the button, such as `#4cc9b0`. |
background | string | Six-digit hex colour for the page background. |
show_eyebrow | boolean | Show the label above the headline. |
eyebrow | string | The label above the headline, up to 40 characters. May be empty only while `show_eyebrow` is false. |
headline | string | Up to 80 characters. |
message | string | The invitation text, up to 240 characters. |
button_text | string | The button label, up to 40 characters. |
skip_text | string | The skip action label, up to 40 characters. |
note | string | What the copy action does, up to 160 characters. |
is_default | object | For each page field, true while it still holds the default. |
400Invalid app ID
| Field | Type | Description |
|---|---|---|
error* | object |
401Unauthorized
| Field | Type | Description |
|---|---|---|
error* | object |
403Forbidden. The API key is missing the apps:read scope. A key whose creator left the organization also gets 403 FORBIDDEN.
| Field | Type | Description |
|---|---|---|
error* | object |
404Not found
| Field | Type | Description |
|---|---|---|
error* | object |
/apps/{id}/referral-pageUpdate an app's referral page
Changes the fields sent and leaves the others as saved. Each field is checked on its own. The read-only keys app_id, logo_version, is_default and enabled are ignored, so a read can be sent back as it is. Needs the apps:write scope and an API key that has a creator. The save is recorded in the audit log.
Parameters
| Name | Type | In | Description |
|---|---|---|---|
id* | string | path |
Request Body
| Field | Type | Description |
|---|---|---|
logo | string | `app-icon`, `none`, or a PNG, JPEG or WebP image of at most 1 MB as a `data:image/...;base64,` URL. |
show_name | boolean | Show the app name beside the logo. |
accent | string | Six-digit hex colour for the button, such as `#4cc9b0`. |
background | string | Six-digit hex colour for the page background. |
show_eyebrow | boolean | Show the label above the headline. |
eyebrow | string | The label above the headline, up to 40 characters. May be empty only while `show_eyebrow` is false. |
headline | string | Up to 80 characters. |
message | string | The invitation text, up to 240 characters. |
button_text | string | The button label, up to 40 characters. |
skip_text | string | The skip action label, up to 40 characters. |
note | string | What the copy action does, up to 160 characters. |
app_id | string | Read only: ignored on a save. |
logo_version | integer | Read only: ignored on a save. |
enabled | boolean | Read only: ignored on a save. |
is_default | object | Read only: ignored on a save. |
Responses
200The saved referral page
| Field | Type | Description |
|---|---|---|
app_id | string | |
logo_version | integer | Changes with every logo upload. 0 until the first one. |
enabled | boolean | Follows the app's iOS referral handoff switch. Read only: ignored on a save. |
logo | string | `app-icon`, `none`, or a PNG, JPEG or WebP image of at most 1 MB as a `data:image/...;base64,` URL. |
show_name | boolean | Show the app name beside the logo. |
accent | string | Six-digit hex colour for the button, such as `#4cc9b0`. |
background | string | Six-digit hex colour for the page background. |
show_eyebrow | boolean | Show the label above the headline. |
eyebrow | string | The label above the headline, up to 40 characters. May be empty only while `show_eyebrow` is false. |
headline | string | Up to 80 characters. |
message | string | The invitation text, up to 240 characters. |
button_text | string | The button label, up to 40 characters. |
skip_text | string | The skip action label, up to 40 characters. |
note | string | What the copy action does, up to 160 characters. |
is_default | object | For each page field, true while it still holds the default. |
400INVALID_ID when the app ID is not a UUID, or VALIDATION_ERROR for an invalid body, with details.fields naming each field that failed.
| Field | Type | Description |
|---|---|---|
error* | object |
401Unauthorized
| Field | Type | Description |
|---|---|---|
error* | object |
403Forbidden. The API key is missing the apps:write scope, or has no creator (ATTRIBUTED_KEY_REQUIRED). A key whose creator left the organization also gets 403 FORBIDDEN.
| Field | Type | Description |
|---|---|---|
error* | object |
404Not found
| Field | Type | Description |
|---|---|---|
error* | object |
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 for the full setup.
/apps/{id}/tether-pageGet an app's Tether settings
Returns the Tether settings of an app: whether links open the hosted page, whether new links start with Tether on, the hosted page design with an is_default flag per field, and the allowed sites for your own page. Needs the apps:read scope.
Parameters
| Name | Type | In | Description |
|---|---|---|---|
id* | string | path |
Responses
200The Tether settings
| Field | Type | Description |
|---|---|---|
app_id | string | |
hosted_page | boolean | Open the hosted Tether page from links that have Tether on. 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. |
new_links | boolean | Start new links of this app with Tether on. |
direct_rule | "open_link" | "tap_only" | What the app opens for a direct visitor: a person who opened your own page with no link tap (search, bookmark, typed address). `open_link` (the default) opens the link named on the page button. `tap_only` opens it only when WarpLink saw a tap of that link earlier on the same phone. Under `open_link` a code request for a direct visitor counts toward an hourly cap per app, and over it the request returns `429 TETHER_RATE_LIMITED`. |
page | object | The hosted page design, every field resolved. |
is_default | object | For each page field, true while it still holds the default. |
allowed_sites | string[] | The sites where your own page may ask for a code, as HTTPS origins such as `https://example.com`, up to 50. |
400Invalid app ID
| Field | Type | Description |
|---|---|---|
error* | object |
401Unauthorized
| Field | Type | Description |
|---|---|---|
error* | object |
403Forbidden. The API key is missing the apps:read scope. A key whose creator left the organization also gets 403 FORBIDDEN.
| Field | Type | Description |
|---|---|---|
error* | object |
404Not found
| Field | Type | Description |
|---|---|---|
error* | object |
/apps/{id}/tether-pageUpdate an app's Tether settings
Changes the settings sent and leaves the others as saved. A page field set to null returns to its default. The read-only keys app_id and is_default are ignored, so a read can be sent back as it is. An unknown key is a 400 VALIDATION_ERROR. Needs the apps:write scope and an API key that has a creator. The save is recorded in the audit log.
Parameters
| Name | Type | In | Description |
|---|---|---|---|
id* | string | path |
Request Body
| Field | Type | Description |
|---|---|---|
hosted_page | boolean | Open the hosted Tether page from links that have Tether on. 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. |
new_links | boolean | Start new links of this app with Tether on. |
direct_rule | "open_link" | "tap_only" | What the app opens for a direct visitor: a person who opened your own page with no link tap (search, bookmark, typed address). `open_link` (the default) opens the link named on the page button. `tap_only` opens it only when WarpLink saw a tap of that link earlier on the same phone. Under `open_link` a code request for a direct visitor counts toward an hourly cap per app, and over it the request returns `429 TETHER_RATE_LIMITED`. |
page | object | Changes to the hosted page design. A field left out stays as it is, null resets it. |
allowed_sites | string[] | The sites where your own page may ask for a code, as HTTPS origins such as `https://example.com`, up to 50. Replaces the saved list. |
app_id | string | Read only: ignored on a save. |
is_default | object | Read only: ignored on a save. |
Responses
200The saved Tether settings
| Field | Type | Description |
|---|---|---|
app_id | string | |
hosted_page | boolean | Open the hosted Tether page from links that have Tether on. 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. |
new_links | boolean | Start new links of this app with Tether on. |
direct_rule | "open_link" | "tap_only" | What the app opens for a direct visitor: a person who opened your own page with no link tap (search, bookmark, typed address). `open_link` (the default) opens the link named on the page button. `tap_only` opens it only when WarpLink saw a tap of that link earlier on the same phone. Under `open_link` a code request for a direct visitor counts toward an hourly cap per app, and over it the request returns `429 TETHER_RATE_LIMITED`. |
page | object | The hosted page design, every field resolved. |
is_default | object | For each page field, true while it still holds the default. |
allowed_sites | string[] | The sites where your own page may ask for a code, as HTTPS origins such as `https://example.com`, up to 50. |
400INVALID_ID when the app ID is not a UUID, or VALIDATION_ERROR for an invalid body, with details.fields naming each field that failed.
| Field | Type | Description |
|---|---|---|
error* | object |
401Unauthorized
| Field | Type | Description |
|---|---|---|
error* | object |
403Forbidden. The API key is missing the apps:write scope, or has no creator (ATTRIBUTED_KEY_REQUIRED). A key whose creator left the organization also gets 403 FORBIDDEN.
| Field | Type | Description |
|---|---|---|
error* | object |
404Not found
| Field | Type | Description |
|---|---|---|
error* | object |
/apps/{id}/tether-sitesList an app's Tether sites
Returns the allowed sites of an app and the sites where the Tether script was seen. A seen site that is not allowed shows how often a page there asked for a code without being allowed. Needs the apps:read scope.
Parameters
| Name | Type | In | Description |
|---|---|---|---|
id* | string | path |
Responses
200The allowed and observed sites
| Field | Type | Description |
|---|---|---|
app_id | string | |
allowed_sites | string[] | HTTPS origins where your own page may ask for a code. |
observed | object[] |
400Invalid app ID
| Field | Type | Description |
|---|---|---|
error* | object |
401Unauthorized
| Field | Type | Description |
|---|---|---|
error* | object |
403Forbidden. The API key is missing the apps:read scope.
| Field | Type | Description |
|---|---|---|
error* | object |
404Not found
| Field | Type | Description |
|---|---|---|
error* | object |
/apps/{id}/tether-sites/observationsDismiss a seen Tether site
Hides a seen site from the observed list. It does not add the site to the allowed sites. Needs the apps:write scope and an API key that has a creator.
Parameters
| Name | Type | In | Description |
|---|---|---|---|
id* | string | path | |
origin* | string | query | The HTTPS origin to hide, such as `https://example.com`. |
page_path | string | query | Hide one page only. It starts with `/` and has no query string. Leave it out to hide the whole origin. |
Responses
200The observation was dismissed
| Field | Type | Description |
|---|---|---|
app_id | string | |
origin | string | |
dismissed | integer | How many seen entries were hidden. |
400INVALID_ID when the app ID is not a UUID, or VALIDATION_ERROR for an invalid origin or path, with details.fields naming each field that failed.
| Field | Type | Description |
|---|---|---|
error* | object |
401Unauthorized
| Field | Type | Description |
|---|---|---|
error* | object |
403Forbidden. The API key is missing the apps:write scope, or has no creator (ATTRIBUTED_KEY_REQUIRED).
| Field | Type | Description |
|---|---|---|
error* | object |
404Not found
| Field | Type | Description |
|---|---|---|
error* | object |
/apps/{id}/tether-resultsGet an app's Tether results
Returns how the Tether handoff did in a window: the funnel from page view to opened app for each source (hosted page, own page from a link, own page opened directly), how installs were matched, the reasons a tap found no code, and the setup state (links using Tether, the last read mode and the SDK versions seen). The window defaults to the last 30 days. Needs the analytics:read and apps:read scopes. A member limited to their own links gets 403 FORBIDDEN. A window that lies wholly before the plan's retention answers 200 with an unavailable object.
Parameters
| Name | Type | In | Description |
|---|---|---|---|
id* | string | path | |
from | string | query | Start of the window as an ISO instant. Send it with `to`, or send neither. |
to | string | query | End of the window as an ISO instant. Send it with `from`, or send neither. |
timezone | string | query | IANA time zone for the buckets. Defaults to the organization's reporting zone. |
Responses
200The Tether results
| Field | Type | Description |
|---|---|---|
receipt | object | The query receipt: the window, the scope and the data that was read. |
app_id | string | |
window | object | null | The window that was read, as ISO instants. Null when `unavailable` is set. |
paused | object | null | Set when a Free organization reached its click limit: the figures stop at that moment. |
funnels | object | One funnel per source: hosted, own_page_link and own_page_direct. |
methods | object | How installs were matched. |
miss_reasons | object[] | Why a tap found no code. The order is fixed, and every reason appears with a count of 0 when none happened. |
setup | object | |
unavailable | object | Present instead of the figures when the whole window is older than the plan keeps. |
400INVALID_ID when the app ID is not a UUID, or VALIDATION_ERROR for an invalid window.
| Field | Type | Description |
|---|---|---|
error* | object |
401Unauthorized
| Field | Type | Description |
|---|---|---|
error* | object |
403Forbidden. The API key is missing the analytics:read or apps:read scope, or its creator is a member limited to their own links (FORBIDDEN).
| Field | Type | Description |
|---|---|---|
error* | object |
404The app does not exist in this organization
| Field | Type | Description |
|---|---|---|
error* | object |
Delete an App
/apps/{id}Delete an app
Parameters
| Name | Type | In | Description |
|---|---|---|---|
id* | string | path |
Responses
200Deleted app
| Field | Type | Description |
|---|---|---|
id | string | |
org_id | string | |
name | string | |
ios_bundle_id | string | null | |
ios_team_id | string | null | |
ios_app_store_id | string | null | |
ios_app_store_url | string | null | |
ios_universal_link_paths | array | null | |
android_package_name | string | null | |
android_sha256_fingerprints | array | null | |
android_play_store_url | string | null | |
android_app_links_paths | array | null | |
icon_url | string | null | |
icon_source | "auto" | "manual" | |
probabilistic_matching | boolean | 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 | boolean | 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 | boolean | True when the iOS referral handoff page is on for this app. Android apps need no switch. Defaults to false. |
referral_credit_window | "24h" | "7d" | "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. |
link_handle | string | The lowercase subdomain label for this app's links, for example acme in acme.aplnk.to. Every app has one. |
link_domain | string | The full host derived from link_handle, for example acme.aplnk.to. |
legacy_apex_enabled | boolean | 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 | string | 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 | boolean | 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 | string[] | 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 | string | null | The app's old subdomain label while a rename period is open. null otherwise. |
previous_link_domain | string | null | The full old host while a rename period is open, for example oldname.aplnk.to. It keeps opening the app. |
rename_period_ends_at | string | null | 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 | integer | How many times the open rename period was extended by 1 month. At most 2. |
tether | boolean | Whether links of this app can use Tether. On for every app on every plan until you turn it off. |
tether_new_links | boolean | Whether new links of this app start with Tether on. |
tether_hosted_page | boolean | 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. |
referral_hosted_page | boolean | Whether iPhone referral invitations use the hosted page. |
created_at | string | |
updated_at | string |
401Unauthorized
| Field | Type | Description |
|---|---|---|
error* | object |
403Forbidden. FORBIDDEN when the key lacks apps:write, or its creator is a member or no longer in the organization. Deleting an app needs an owner or admin creator.
| Field | Type | Description |
|---|---|---|
error* | object |
404Not found
| Field | Type | Description |
|---|---|---|
error* | object |
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.
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_handlewith everylink_handle: the handle you last read. If the app's handle is another, the request gets409 APP_LINK_STATE_CHANGEDand 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
confirmand 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 gets409 APP_LINK_STATE_CHANGED. - Once a link or redirect uses the subdomain, a rename is still allowed, one at a time. It needs
confirm: trueand 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 gets403 FORBIDDEN. - A rename that starts a period is refused with
409 RENAME_PERIOD_OPENwhile an earlier rename period is open, including a rename back to the old name.detailscarriesprevious_link_handleandrename_period_ends_at. - When links use the old host, send
confirm: true. Without it the request gets409 CONFIRMATION_REQUIREDwithlinks_on_old_hostindetails. 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
testis reserved on app subdomains:https://{link_domain}/testis the setup test page, so no link can use it there. link_handle: nullis a400 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.
/apps/{id}/link-domainSet an app's default link domain
Chooses the default domain for the app's new links: aplnk.to (legacy apps only), the app's own subdomain, or a live custom domain. Reversible. Existing links keep their addresses, and no redirect is created. Needs an API key that has a creator. Send the link_handle and default_link_domain you last read, so a change made meanwhile is never overwritten. A request already at the requested default returns the current app without a change.
Parameters
| Name | Type | In | Description |
|---|---|---|---|
id* | string | path |
Request Body
| Field | Type | Description |
|---|---|---|
domain* | string | The hostname new links use by default. One of allowed_link_domains on the app. |
expected_link_handle* | string | The app's link_handle as you last read it. |
expected_default_link_domain* | string | The app's default_link_domain as you last read it. |
confirm | boolean | Must be true for a change. Without it a change is refused with 400 VALIDATION_ERROR. |
Responses
200The app with its new default
| Field | Type | Description |
|---|---|---|
id | string | |
org_id | string | |
name | string | |
ios_bundle_id | string | null | |
ios_team_id | string | null | |
ios_app_store_id | string | null | |
ios_app_store_url | string | null | |
ios_universal_link_paths | array | null | |
android_package_name | string | null | |
android_sha256_fingerprints | array | null | |
android_play_store_url | string | null | |
android_app_links_paths | array | null | |
icon_url | string | null | |
icon_source | "auto" | "manual" | |
probabilistic_matching | boolean | 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 | boolean | 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 | boolean | True when the iOS referral handoff page is on for this app. Android apps need no switch. Defaults to false. |
referral_credit_window | "24h" | "7d" | "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. |
link_handle | string | The lowercase subdomain label for this app's links, for example acme in acme.aplnk.to. Every app has one. |
link_domain | string | The full host derived from link_handle, for example acme.aplnk.to. |
legacy_apex_enabled | boolean | 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 | string | 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 | boolean | 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 | string[] | 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 | string | null | The app's old subdomain label while a rename period is open. null otherwise. |
previous_link_domain | string | null | The full old host while a rename period is open, for example oldname.aplnk.to. It keeps opening the app. |
rename_period_ends_at | string | null | 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 | integer | How many times the open rename period was extended by 1 month. At most 2. |
tether | boolean | Whether links of this app can use Tether. On for every app on every plan until you turn it off. |
tether_new_links | boolean | Whether new links of this app start with Tether on. |
tether_hosted_page | boolean | 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. |
referral_hosted_page | boolean | Whether iPhone referral invitations use the hosted page. |
created_at | string | |
updated_at | string |
400INVALID_ID when the app ID is not a UUID, or VALIDATION_ERROR for an invalid body, a domain the app cannot use (fields.domain), or a change without confirm (fields.confirm).
| Field | Type | Description |
|---|---|---|
error* | object |
401Unauthorized
| Field | Type | Description |
|---|---|---|
error* | object |
403Forbidden. ATTRIBUTED_KEY_REQUIRED for a key with no creator.
| Field | Type | Description |
|---|---|---|
error* | object |
404Not found
| Field | Type | Description |
|---|---|---|
error* | object |
409APP_LINK_STATE_CHANGED when the link_handle or default_link_domain you sent is no longer current. Read the app and review the settings before you retry.
| Field | Type | Description |
|---|---|---|
error* | object |
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.
/apps/{id}/extend-subdomain-renameExtend an app's rename period
Adds 1 month to the rename period's end date. The previous subdomain keeps working. Up to 2 times, and only before the period ends. Takes no body.
Parameters
| Name | Type | In | Description |
|---|---|---|---|
id* | string | path |
Responses
200The app with its new rename period end
| Field | Type | Description |
|---|---|---|
id | string | |
org_id | string | |
name | string | |
ios_bundle_id | string | null | |
ios_team_id | string | null | |
ios_app_store_id | string | null | |
ios_app_store_url | string | null | |
ios_universal_link_paths | array | null | |
android_package_name | string | null | |
android_sha256_fingerprints | array | null | |
android_play_store_url | string | null | |
android_app_links_paths | array | null | |
icon_url | string | null | |
icon_source | "auto" | "manual" | |
probabilistic_matching | boolean | 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 | boolean | 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 | boolean | True when the iOS referral handoff page is on for this app. Android apps need no switch. Defaults to false. |
referral_credit_window | "24h" | "7d" | "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. |
link_handle | string | The lowercase subdomain label for this app's links, for example acme in acme.aplnk.to. Every app has one. |
link_domain | string | The full host derived from link_handle, for example acme.aplnk.to. |
legacy_apex_enabled | boolean | 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 | string | 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 | boolean | 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 | string[] | 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 | string | null | The app's old subdomain label while a rename period is open. null otherwise. |
previous_link_domain | string | null | The full old host while a rename period is open, for example oldname.aplnk.to. It keeps opening the app. |
rename_period_ends_at | string | null | 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 | integer | How many times the open rename period was extended by 1 month. At most 2. |
tether | boolean | Whether links of this app can use Tether. On for every app on every plan until you turn it off. |
tether_new_links | boolean | Whether new links of this app start with Tether on. |
tether_hosted_page | boolean | 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. |
referral_hosted_page | boolean | Whether iPhone referral invitations use the hosted page. |
created_at | string | |
updated_at | string |
400Invalid app ID
| Field | Type | Description |
|---|---|---|
error* | object |
401Unauthorized
| Field | Type | Description |
|---|---|---|
error* | object |
403Forbidden
| Field | Type | Description |
|---|---|---|
error* | object |
404Not found
| Field | Type | Description |
|---|---|---|
error* | object |
409RENAME_PERIOD_NOT_OPEN when the app has no open rename period, or it already ended. RENAME_EXTENSION_LIMIT when both extensions were used (details.limit is 2).
| Field | Type | Description |
|---|---|---|
error* | object |
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).
/apps/{id}/link-movesList an app's link moves
Shows the links that still use an app's previous subdomain, and which cannot keep their slug on the app's current subdomain because it is taken there. Conflicts come first. If a link later moves, its old URL answers a permanent redirect. An app with no previous subdomain in use returns an empty moves list. Needs the links:read scope.
Parameters
| Name | Type | In | Description |
|---|---|---|---|
id* | string | path | |
limit | integer | query | Links per move. |
offset | integer | query | Links to skip in each move. |
Responses
200The app's pending moves
| Field | Type | Description |
|---|---|---|
moves | object[] |
400Invalid app ID or page
| Field | Type | Description |
|---|---|---|
error* | object |
401Unauthorized
| Field | Type | Description |
|---|---|---|
error* | object |
403Forbidden
| Field | Type | Description |
|---|---|---|
error* | object |
404Not found
| Field | Type | Description |
|---|---|---|
error* | object |
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
/apps/{id}/sdk-setupGet the SDK setup steps for an app
The install step with the current SDK version, the configure snippet, the link hosts, the iOS Associated Domains lines or the Android intent filter, and the app's test address, for one platform of one app. The SDK key is a placeholder: the response never holds a key. Requires an API key with the `apps:read` scope. The MCP tool `get_sdk_setup` returns the same data.
Parameters
| Name | Type | In | Description |
|---|---|---|---|
id* | string | path | |
platform* | "ios" | "android" | "react-native" | "flutter" | query | The platform to build the steps for. |
Responses
200The setup steps
| Field | Type | Description |
|---|---|---|
app_id | string | |
app_name | string | |
platform | "ios" | "android" | "react-native" | "flutter" | |
sdk_version | string | The current SDK release for the platform. |
install | object | |
configure | object | |
sdk_key | object | Where the SDK key goes. The response never holds a key. |
sdk_version_note | string | null | Set only when `tether` is present. Reads: Tether needs SDK 1.4.0 or newer. Install 1.4.0 or a later release. |
tether | object | null | The Tether setup for the app. Null for an Android app, which reads the install referrer and needs no code. |
link_domains | object | |
ios | object | null | Present for `ios`, `react-native` and `flutter`. Null for `android`. |
android | object | null | Present for `android`, `react-native` and `flutter`. Null for `ios`. |
test_address | string | e.g. https://yourapp.aplnk.to/test |
next_step | string | |
missing | object[] | App fields this platform needs and the app does not have, each with its fix. Empty when the app is complete. |
agent_kit | object | The Claude Code agent kit, which adds a setup skill. Other agents can use the AGENTS.md block at `docs_url`. |
400Validation error: a missing or unknown `platform`, or an `id` that is not a UUID.
| Field | Type | Description |
|---|---|---|
error* | object |
401Unauthorized
| Field | Type | Description |
|---|---|---|
error* | object |
403Forbidden
| Field | Type | Description |
|---|---|---|
error* | object |
404The app does not exist in this organization
| Field | Type | Description |
|---|---|---|
error* | object |
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:
installandconfigure: the install step with the current SDK version, and the configure snippet.sdk_key: where the key goes.placeholderisYOUR_SDK_KEY, andhow_to_getnames thecreate_keycall 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 oneapplinks:<host>line per host for Associated Domains. Exact hosts, never a wildcard.android: the package name, the SHA256 fingerprints, and an intent filter withautoVerifyfor 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 isnullfor 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
/apps/{id}/setup-checkCheck an app's setup
Runs every setup check for one app: its fields, the link files it serves, its custom domains, its SDK key, the first SDK connection, the SDK version, a test link, and the first click. Each check has a status of `pass`, `fail`, `warn`, `needs_human` or `skipped`, and a `fix` when it did not pass. Read only: it writes nothing. Requires an API key with the `apps:read` scope. The MCP tool `verify_setup` returns the same data.
Parameters
| Name | Type | In | Description |
|---|---|---|---|
id* | string | path | |
platform | "ios" | "android" | "react-native" | "flutter" | query | Limits the checks to one platform. Omit it to check every platform the app is set up for. |
tether_test_receipt | string | query | The receipt a test build returns after a Tether paste read with a `wl1t_` test code. When it is valid for this app, the `tether_paste` check passes. A test code creates no link, click or install. |
Responses
200The setup checks. A `tether_test_receipt` that is malformed, expired or made for another app is not an error: the `tether_paste` check comes back as `fail` with the reason.
| Field | Type | Description |
|---|---|---|
app_id | string | |
ready | boolean | True when no check failed. A `warn`, `needs_human` or `skipped` check does not block it. |
checks | object[] | |
needs_human | object[] | The checks with status `needs_human`, so a caller that has fixed every failure knows what is left for a person. |
400Validation error: an unknown `platform`, or an `id` that is not a UUID.
| Field | Type | Description |
|---|---|---|
error* | object |
401Unauthorized
| Field | Type | Description |
|---|---|---|
error* | object |
403Forbidden
| Field | Type | Description |
|---|---|---|
error* | object |
404The app does not exist in this organization
| Field | Type | Description |
|---|---|---|
error* | object |
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.
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.
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.