Links
Links API endpoints to create, list, retrieve, update, and delete deep links, including destinations, fallbacks, and UTM parameters.
Create a Link
/linksCreate a link
A `wl_test_` key creates a Test link, and `app_id` must be a Test app: without one the call answers 400 `TEST_APP_REQUIRED`. Test holds 100 links, and the next create answers 403 `TEST_LINK_LIMIT`.
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 |
|---|---|---|
destination_url* | string | The address of the web page the link opens. It must start with `http://` or `https://`. An address with a user part, such as `https://name@example.com` or `name@example.com`, is an email address and answers `400 VALIDATION_ERROR`. |
slug | string | Custom slug. Auto-generated if omitted. |
name | string | The link's name in the dashboard. Shows the slug if omitted. |
domain | string | Domain to serve this link from. A link with an app defaults to the app's default_link_domain. A web-only link (no app) defaults to aplnk.to, and an existing link with no app keeps aplnk.to. A legacy app (legacy_apex_enabled) can use aplnk.to, its subdomain (link_domain) or a live custom domain. A new app can use its subdomain or a live custom domain, never aplnk.to (422 INVALID_DOMAIN). An explicit domain is never replaced. The slug test is reserved on an app subdomain. An app's previous subdomain (previous_link_domain) never takes new links. |
ios_url | string | |
ios_fallback_url | string | The web page this platform opens when the app is not installed. An address with a user part, such as `https://name@example.com`, is an email address and answers `400 VALIDATION_ERROR`. |
android_url | string | |
android_fallback_url | string | The web page this platform opens when the app is not installed. An address with a user part, such as `https://name@example.com`, is an email address and answers `400 VALIDATION_ERROR`. |
og_title | string | |
og_description | string | |
og_image_url | string | |
tags | string[] | |
expires_at | string | Must be in the future. |
password | string | |
app_id | string | |
is_referral | boolean | Make this a referral link, so installs from it can be claimed as referrals. Needs app_id: without one the request is refused with 400 VALIDATION_ERROR. |
tether | boolean | Carry a Tether code to the app after an iPhone install. Needs a link with an app that has an iOS bundle ID and Tether turned on, otherwise the request is refused with 422 TETHER_NOT_AVAILABLE. When left out, the link follows the app's setting for new links. |
tether_direct_rule | string | null | What the app opens for a direct visitor of this link, the same choice as the app's `direct_rule`. Null follows the app's `direct_rule`. Left out, the link follows the app. |
utm_source | string | Added to the redirect URL as utm_source when no higher source supplies one. Order for utm_source: an injected utm_source in "always" mode wins; otherwise the visitor's own utm_source when parameters.forwarding passes it, then a utm_source already in the destination URL, then an injected utm_source in "default" mode (this field is then not used), then this field. Applies to http and https URLs only; not to apps.apple.com, itunes.apple.com, play.google.com, apps.microsoft.com or custom-scheme URLs. |
utm_medium | string | Added to the redirect URL as utm_medium when no higher source supplies one. Order for utm_medium: an injected utm_medium in "always" mode wins; otherwise the visitor's own utm_medium when parameters.forwarding passes it, then a utm_medium already in the destination URL, then an injected utm_medium in "default" mode (this field is then not used), then this field. Applies to http and https URLs only; not to apps.apple.com, itunes.apple.com, play.google.com, apps.microsoft.com or custom-scheme URLs. |
utm_campaign | string | Added to the redirect URL as utm_campaign when no higher source supplies one. Order for utm_campaign: an injected utm_campaign in "always" mode wins; otherwise the visitor's own utm_campaign when parameters.forwarding passes it, then a utm_campaign already in the destination URL, then an injected utm_campaign in "default" mode (this field is then not used), then this field. Applies to http and https URLs only; not to apps.apple.com, itunes.apple.com, play.google.com, apps.microsoft.com or custom-scheme URLs. |
match_window_hours | integer | Deferred deep link attribution match window in hours. |
parameters | object | null | Per-link query-parameter rules. `injected` params are appended to the destination URL; `forwarding` controls which incoming params pass through. Org-level defaults are inherited and merged with link-level config (link wins on key conflict). Precedence: link > org. Send `null` (or omit) to clear/inherit the org defaults. |
Responses
200Dry run (`dry_run=true`): every check passed. `result` is the link the call would create, with a null `id`, and nothing was saved.
| Field | Type | Description |
|---|---|---|
dry_run* | "true" | |
result* | object | The link the call would create, in the shape of the Link object. `id` is null. `slug` and `short_url` are null, with a `slug_note`, when WarpLink would generate the slug. |
201Link created. A replayed answer to the same `Idempotency-Key` carries the header `Idempotent-Replayed: true`.
| Field | Type | Description |
|---|---|---|
id | string | |
short_url | string | e.g. https://aplnk.to/abc123 |
slug | string | e.g. abc123 |
name | string | null | The link's own name in the dashboard. Null shows the slug.e.g. Summer sale |
domain | string | e.g. aplnk.to |
destination_url | string | |
ios_url | string | null | |
ios_fallback_url | string | null | |
android_url | string | null | |
android_fallback_url | string | null | |
og_title | string | null | |
og_description | string | null | |
og_image_url | string | null | |
app_id | string | null | |
utm_source | string | null | Added to the redirect URL as utm_source when no higher source supplies one. Order for utm_source: an injected utm_source in "always" mode wins; otherwise the visitor's own utm_source when parameters.forwarding passes it, then a utm_source already in the destination URL, then an injected utm_source in "default" mode (this field is then not used), then this field. Applies to http and https URLs only; not to apps.apple.com, itunes.apple.com, play.google.com, apps.microsoft.com or custom-scheme URLs. |
utm_medium | string | null | Added to the redirect URL as utm_medium when no higher source supplies one. Order for utm_medium: an injected utm_medium in "always" mode wins; otherwise the visitor's own utm_medium when parameters.forwarding passes it, then a utm_medium already in the destination URL, then an injected utm_medium in "default" mode (this field is then not used), then this field. Applies to http and https URLs only; not to apps.apple.com, itunes.apple.com, play.google.com, apps.microsoft.com or custom-scheme URLs. |
utm_campaign | string | null | Added to the redirect URL as utm_campaign when no higher source supplies one. Order for utm_campaign: an injected utm_campaign in "always" mode wins; otherwise the visitor's own utm_campaign when parameters.forwarding passes it, then a utm_campaign already in the destination URL, then an injected utm_campaign in "default" mode (this field is then not used), then this field. Applies to http and https URLs only; not to apps.apple.com, itunes.apple.com, play.google.com, apps.microsoft.com or custom-scheme URLs. |
match_window_hours | integer | null | |
expires_at | string | null | |
is_active | boolean | |
is_referral | boolean | True when installs from this link can be claimed as referrals. Only a link with an app can be a referral link. |
referral_since | string | null | When the link became a referral link. Null while is_referral is false. Turning it off clears it, and turning it on again sets a new time. |
tether | boolean | True when the link carries a Tether code to the app after an iPhone install. New links start with false unless the app turns on Tether for new links. |
tether_direct_rule | string | null | What the app opens for a direct visitor of this link, the same choice as the app's `direct_rule`. Null follows the app's `direct_rule`. |
tags | string[] | |
parameters | object | null | Per-link query-parameter rules. `injected` params are appended to the destination URL; `forwarding` controls which incoming params pass through. Org-level defaults are inherited and merged with link-level config (link wins on key conflict). Precedence: link > org. Send `null` (or omit) to clear/inherit the org defaults. |
created_at | string | |
updated_at | string | |
redirected_from | object[] | Old URLs of this link that redirect to it with a permanent 301, oldest first. Present only on GET /v1/links/{id} (and the get_link MCP tool), not on list, update, activate or deactivate responses. |
400Validation error. VALIDATION_ERROR with fields.is_referral: is_referral is true and the link would have no app. Pass app_id, or leave is_referral off. TEST_APP_REQUIRED: a Test link needs a Test app, so pass the app_id of a Test app.
| Field | Type | Description |
|---|---|---|
error* | object |
401Unauthorized
| Field | Type | Description |
|---|---|---|
error* | object |
403Forbidden. APP_REQUIRED: the organization has no registered app yet. Create an app with POST /apps, then create the link. LINK_LIMIT_EXCEEDED: the plan's link limit has been reached. UNCLAIMED_LIMIT: a workspace that no human has claimed yet holds at most 10 links. TEST_LINK_LIMIT: the Test environment holds 100 links, and that limit is reached.
| Field | Type | Description |
|---|---|---|
error* | object |
409SLUG_TAKEN: the slug is already taken on that domain, it is the old address of a moved link, or it is held for a link of the same app that still waits to move there (details.slug and details.domain, plus details.held_by with the old domain and slug for a held address). A slug must be unique only on the domain you pick. DEFAULT_DOMAIN_UNAVAILABLE: the request names no domain and the app's saved default is a custom domain that is no longer live (details.allowed_link_domains lists what to choose instead). APP_LINK_STATE_CHANGED: the app's address or default changed while the link was being created; read the app and retry. IDEMPOTENCY_IN_PROGRESS: a request with the same `Idempotency-Key` is still running. Retry with the same key.
| Field | Type | Description |
|---|---|---|
error* | object |
422INVALID_DOMAIN: the domain is not allowed for this link. A new app cannot use aplnk.to. Use the app's subdomain or a live custom domain. IDEMPOTENCY_KEY_REUSED: the `Idempotency-Key` was used with a different request body. TETHER_NOT_AVAILABLE: `tether` is true for a link with no app, an app with no iOS bundle ID, or an app with Tether turned off.
| Field | Type | Description |
|---|---|---|
error* | object |
429Rate limit exceeded
| Field | Type | Description |
|---|---|---|
error* | object |
Send an Idempotency-Key header to make a retry safe: the same key and body returns the first response with Idempotent-Replayed: true instead of creating a second link. Add ?dry_run=true to run every check without creating anything. A dry run returns { "dry_run": true, "result": ... }, with id: null, and with slug and short_url null plus a slug_note when WarpLink would generate the slug. See Safe retries and dry runs.
The destination is the address of a web page. An address with a user part, such as https://name@example.com or name@example.com, is an email address, and the request fails with 400 VALIDATION_ERROR. ios_fallback_url and android_fallback_url follow the same rule. A link you already created keeps its address, and an update that leaves the field out does not check it.
When a body also holds a valid field, the API ignores a field it does not know and still answers 2xx, so check the fields in the response body. A PATCH body with no known field fails with 400 VALIDATION_ERROR and the message "Invalid request body". The field details hold "At least one field must be provided". A common mistake is deep_link_url: the iPhone and Android in-app URLs are ios_url and android_url. See Unknown request fields.
In a workspace that an AI agent started and no person has claimed yet (claiming is when a person takes the workspace over from the emailed claim link), a new link starts paused, and the workspace holds at most 10 links. A request over that cap returns 403 UNCLAIMED_LIMIT. See Agent sign-up.
List Links
/linksList links
Parameters
| Name | Type | In | Description |
|---|---|---|---|
limit | integer | query | |
offset | integer | query | |
tag | string | query | |
is_active | "true" | "false" | query | |
is_referral | "true" | "false" | query | Return only referral links (true) or only links that are not (false). |
search | string | query |
Responses
200List of links
| Field | Type | Description |
|---|---|---|
data | object[] | |
pagination | object |
401Unauthorized
| Field | Type | Description |
|---|---|---|
error* | object |
403Forbidden
| Field | Type | Description |
|---|---|---|
error* | object |
Get a Link
/links/{id}Get a link
Parameters
| Name | Type | In | Description |
|---|---|---|---|
id* | string | path |
Responses
200Link details
| Field | Type | Description |
|---|---|---|
id | string | |
short_url | string | e.g. https://aplnk.to/abc123 |
slug | string | e.g. abc123 |
name | string | null | The link's own name in the dashboard. Null shows the slug.e.g. Summer sale |
domain | string | e.g. aplnk.to |
destination_url | string | |
ios_url | string | null | |
ios_fallback_url | string | null | |
android_url | string | null | |
android_fallback_url | string | null | |
og_title | string | null | |
og_description | string | null | |
og_image_url | string | null | |
app_id | string | null | |
utm_source | string | null | Added to the redirect URL as utm_source when no higher source supplies one. Order for utm_source: an injected utm_source in "always" mode wins; otherwise the visitor's own utm_source when parameters.forwarding passes it, then a utm_source already in the destination URL, then an injected utm_source in "default" mode (this field is then not used), then this field. Applies to http and https URLs only; not to apps.apple.com, itunes.apple.com, play.google.com, apps.microsoft.com or custom-scheme URLs. |
utm_medium | string | null | Added to the redirect URL as utm_medium when no higher source supplies one. Order for utm_medium: an injected utm_medium in "always" mode wins; otherwise the visitor's own utm_medium when parameters.forwarding passes it, then a utm_medium already in the destination URL, then an injected utm_medium in "default" mode (this field is then not used), then this field. Applies to http and https URLs only; not to apps.apple.com, itunes.apple.com, play.google.com, apps.microsoft.com or custom-scheme URLs. |
utm_campaign | string | null | Added to the redirect URL as utm_campaign when no higher source supplies one. Order for utm_campaign: an injected utm_campaign in "always" mode wins; otherwise the visitor's own utm_campaign when parameters.forwarding passes it, then a utm_campaign already in the destination URL, then an injected utm_campaign in "default" mode (this field is then not used), then this field. Applies to http and https URLs only; not to apps.apple.com, itunes.apple.com, play.google.com, apps.microsoft.com or custom-scheme URLs. |
match_window_hours | integer | null | |
expires_at | string | null | |
is_active | boolean | |
is_referral | boolean | True when installs from this link can be claimed as referrals. Only a link with an app can be a referral link. |
referral_since | string | null | When the link became a referral link. Null while is_referral is false. Turning it off clears it, and turning it on again sets a new time. |
tether | boolean | True when the link carries a Tether code to the app after an iPhone install. New links start with false unless the app turns on Tether for new links. |
tether_direct_rule | string | null | What the app opens for a direct visitor of this link, the same choice as the app's `direct_rule`. Null follows the app's `direct_rule`. |
tags | string[] | |
parameters | object | null | Per-link query-parameter rules. `injected` params are appended to the destination URL; `forwarding` controls which incoming params pass through. Org-level defaults are inherited and merged with link-level config (link wins on key conflict). Precedence: link > org. Send `null` (or omit) to clear/inherit the org defaults. |
created_at | string | |
updated_at | string | |
redirected_from | object[] | Old URLs of this link that redirect to it with a permanent 301, oldest first. Present only on GET /v1/links/{id} (and the get_link MCP tool), not on list, update, activate or deactivate responses. |
401Unauthorized
| Field | Type | Description |
|---|---|---|
error* | object |
403Forbidden
| Field | Type | Description |
|---|---|---|
error* | object |
404Not found
| Field | Type | Description |
|---|---|---|
error* | object |
Update a Link
/links/{id}Update a link
Parameters
| Name | Type | In | Description |
|---|---|---|---|
id* | string | path | |
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 |
|---|---|---|
destination_url | string | The address of the web page the link opens. It must start with `http://` or `https://`. An address with a user part, such as `https://name@example.com` or `name@example.com`, is an email address and answers `400 VALIDATION_ERROR`. |
name | string | null | Rename the link. Send null to show the slug again. |
ios_url | string | null | |
ios_fallback_url | string | null | The web page this platform opens when the app is not installed. An address with a user part, such as `https://name@example.com`, is an email address and answers `400 VALIDATION_ERROR`. |
android_url | string | null | |
android_fallback_url | string | null | The web page this platform opens when the app is not installed. An address with a user part, such as `https://name@example.com`, is an email address and answers `400 VALIDATION_ERROR`. |
og_title | string | null | |
og_description | string | null | |
og_image_url | string | null | |
tags | array | null | |
expires_at | string | null | |
password | string | null | |
app_id | string | null | |
is_active | boolean | Set false to pause the link and true to resume it. A paused link stops redirecting, and its click history and slug stay. Send it alone to pause or resume without editing anything else; every role can do that on any link. |
is_referral | boolean | Turn referral on or off for this link. Turning it on needs an app, and clearing the app of a referral link is refused, both with 400 VALIDATION_ERROR. Turning it off is always allowed. Turning it on sets referral_since, and a repeated true keeps the original time. A member can change it only on links they created. |
tether | boolean | Turn Tether on or off for this link. Turning it on needs an app with an iOS bundle ID and Tether turned on, otherwise the request is refused with 422 TETHER_NOT_AVAILABLE. Turning it off is always allowed. A member can change it only on links they created. |
tether_direct_rule | string | null | What the app opens for a direct visitor of this link, the same choice as the app's `direct_rule`. Null follows the app's `direct_rule`. Left out, the saved value stays. A member can change it only on links they created. |
utm_source | string | null | Added to the redirect URL as utm_source when no higher source supplies one. Order for utm_source: an injected utm_source in "always" mode wins; otherwise the visitor's own utm_source when parameters.forwarding passes it, then a utm_source already in the destination URL, then an injected utm_source in "default" mode (this field is then not used), then this field. Applies to http and https URLs only; not to apps.apple.com, itunes.apple.com, play.google.com, apps.microsoft.com or custom-scheme URLs. |
utm_medium | string | null | Added to the redirect URL as utm_medium when no higher source supplies one. Order for utm_medium: an injected utm_medium in "always" mode wins; otherwise the visitor's own utm_medium when parameters.forwarding passes it, then a utm_medium already in the destination URL, then an injected utm_medium in "default" mode (this field is then not used), then this field. Applies to http and https URLs only; not to apps.apple.com, itunes.apple.com, play.google.com, apps.microsoft.com or custom-scheme URLs. |
utm_campaign | string | null | Added to the redirect URL as utm_campaign when no higher source supplies one. Order for utm_campaign: an injected utm_campaign in "always" mode wins; otherwise the visitor's own utm_campaign when parameters.forwarding passes it, then a utm_campaign already in the destination URL, then an injected utm_campaign in "default" mode (this field is then not used), then this field. Applies to http and https URLs only; not to apps.apple.com, itunes.apple.com, play.google.com, apps.microsoft.com or custom-scheme URLs. |
match_window_hours | integer | null | |
parameters | object | null | Per-link query-parameter rules. `injected` params are appended to the destination URL; `forwarding` controls which incoming params pass through. Org-level defaults are inherited and merged with link-level config (link wins on key conflict). Precedence: link > org. Send `null` (or omit) to clear/inherit the org defaults. |
Responses
200Updated link. With `dry_run=true` the body is `{ "dry_run": true, "result": <the link as the update would leave it> }` and nothing is saved.
| Field | Type | Description |
|---|---|---|
id | string | |
short_url | string | e.g. https://aplnk.to/abc123 |
slug | string | e.g. abc123 |
name | string | null | The link's own name in the dashboard. Null shows the slug.e.g. Summer sale |
domain | string | e.g. aplnk.to |
destination_url | string | |
ios_url | string | null | |
ios_fallback_url | string | null | |
android_url | string | null | |
android_fallback_url | string | null | |
og_title | string | null | |
og_description | string | null | |
og_image_url | string | null | |
app_id | string | null | |
utm_source | string | null | Added to the redirect URL as utm_source when no higher source supplies one. Order for utm_source: an injected utm_source in "always" mode wins; otherwise the visitor's own utm_source when parameters.forwarding passes it, then a utm_source already in the destination URL, then an injected utm_source in "default" mode (this field is then not used), then this field. Applies to http and https URLs only; not to apps.apple.com, itunes.apple.com, play.google.com, apps.microsoft.com or custom-scheme URLs. |
utm_medium | string | null | Added to the redirect URL as utm_medium when no higher source supplies one. Order for utm_medium: an injected utm_medium in "always" mode wins; otherwise the visitor's own utm_medium when parameters.forwarding passes it, then a utm_medium already in the destination URL, then an injected utm_medium in "default" mode (this field is then not used), then this field. Applies to http and https URLs only; not to apps.apple.com, itunes.apple.com, play.google.com, apps.microsoft.com or custom-scheme URLs. |
utm_campaign | string | null | Added to the redirect URL as utm_campaign when no higher source supplies one. Order for utm_campaign: an injected utm_campaign in "always" mode wins; otherwise the visitor's own utm_campaign when parameters.forwarding passes it, then a utm_campaign already in the destination URL, then an injected utm_campaign in "default" mode (this field is then not used), then this field. Applies to http and https URLs only; not to apps.apple.com, itunes.apple.com, play.google.com, apps.microsoft.com or custom-scheme URLs. |
match_window_hours | integer | null | |
expires_at | string | null | |
is_active | boolean | |
is_referral | boolean | True when installs from this link can be claimed as referrals. Only a link with an app can be a referral link. |
referral_since | string | null | When the link became a referral link. Null while is_referral is false. Turning it off clears it, and turning it on again sets a new time. |
tether | boolean | True when the link carries a Tether code to the app after an iPhone install. New links start with false unless the app turns on Tether for new links. |
tether_direct_rule | string | null | What the app opens for a direct visitor of this link, the same choice as the app's `direct_rule`. Null follows the app's `direct_rule`. |
tags | string[] | |
parameters | object | null | Per-link query-parameter rules. `injected` params are appended to the destination URL; `forwarding` controls which incoming params pass through. Org-level defaults are inherited and merged with link-level config (link wins on key conflict). Precedence: link > org. Send `null` (or omit) to clear/inherit the org defaults. |
created_at | string | |
updated_at | string | |
redirected_from | object[] | Old URLs of this link that redirect to it with a permanent 301, oldest first. Present only on GET /v1/links/{id} (and the get_link MCP tool), not on list, update, activate or deactivate responses. |
400Validation error. VALIDATION_ERROR with fields.is_referral: the link would be a referral link with no app. Turn is_referral off first, or keep an app on the link.
| Field | Type | Description |
|---|---|---|
error* | object |
401Unauthorized
| Field | Type | Description |
|---|---|---|
error* | object |
403Forbidden
| Field | Type | Description |
|---|---|---|
error* | object |
404Not found
| Field | Type | Description |
|---|---|---|
error* | object |
422INVALID_DOMAIN: the link's domain is not one the new app_id uses, for example aplnk.to for a new app. A link's domain never changes, so create a new link for that app. TETHER_NOT_AVAILABLE: `tether` is true for a link with no app, an app with no iOS bundle ID, or an app with Tether turned off.
| Field | Type | Description |
|---|---|---|
error* | object |
To pause a link, send PATCH with is_active set to false. Send true to resume it. A paused link keeps its click history and its slug. DELETE removes both and cannot be undone. A request that sends only is_active is allowed for every role on any link.
Add ?dry_run=true to check an update without saving it. The response is { "dry_run": true, "result": <the link as the update would leave it> }.
Referral Links
Send is_referral: true on create or update to make a link a referral link: an invitation whose installs can be recorded as referrals. A referral claim ties one install to the invitation that brought it. Only a link with an app can be one, and a link with no app answers 400 VALIDATION_ERROR. The link returns is_referral and referral_since, the time it became a referral link. Turning it off clears referral_since, and turning it on again sets a new time. A tap from before referral_since is not a referral.
GET /v1/links?is_referral=true lists only referral links. The MCP tools create_link, update_link and list_links take the same field. See Referrals for what a referral link does after the tap.
UTM Fields
utm_source, utm_medium and utm_campaign on a link add those query parameters to the URL a visitor is redirected to, including for links created before you set them. The same fields on the MCP create_link and update_link tools behave the same way.
A field applies to the URL the redirect sends the visitor to when that URL is an http or https URL. This covers the web destination and any http or https iOS or Android URL you set. It does not apply to pages on apps.apple.com, itunes.apple.com, play.google.com or apps.microsoft.com, or to custom-scheme deep links such as myapp://. Each field sets only its own key.
For one key, up to four sources can supply a value. The one that wins depends on the mode of an injected parameter for that key (in the link's parameters.injected or the organization's injected parameters):
- An injected parameter in
alwaysmode wins over everything, including the visitor's own value. - Otherwise, the first of these that has a value wins:
- The visitor's own value, when
parameters.forwardingpasses that key. The default forwarding rule passes five keys:utm_source,utm_medium,utm_campaign,utm_termandutm_content. Other keys, such asutm_id, are not forwarded by default. - A value already in the destination URL.
- An injected parameter in
defaultmode. When one exists for the key, the link field is not used for that key. - The link field.
- The visitor's own value, when
So when the visitor, the destination URL, a default injected parameter and the link field all supply utm_source, the visitor's value is the one sent.
A key is never added twice. An empty or blank field adds nothing. Clearing a field (null on update) stops the tag on the next redirect. Clicks to a web destination record the UTM values the visitor was sent, read from the final URL, so an applied link field appears in analytics. App store and app scheme destinations keep the values from the tap.
Delete a Link
/links/{id}Delete a link
Permanently deletes the link. This is not reversible: it also removes the link's click history and frees the slug for reuse. To pause a link instead while keeping its data, send a PATCH with `is_active` set to `false`.
Parameters
| Name | Type | In | Description |
|---|---|---|---|
id* | string | path |
Responses
200Deleted link
| Field | Type | Description |
|---|---|---|
id | string | |
short_url | string | e.g. https://aplnk.to/abc123 |
slug | string | e.g. abc123 |
name | string | null | The link's own name in the dashboard. Null shows the slug.e.g. Summer sale |
domain | string | e.g. aplnk.to |
destination_url | string | |
ios_url | string | null | |
ios_fallback_url | string | null | |
android_url | string | null | |
android_fallback_url | string | null | |
og_title | string | null | |
og_description | string | null | |
og_image_url | string | null | |
app_id | string | null | |
utm_source | string | null | Added to the redirect URL as utm_source when no higher source supplies one. Order for utm_source: an injected utm_source in "always" mode wins; otherwise the visitor's own utm_source when parameters.forwarding passes it, then a utm_source already in the destination URL, then an injected utm_source in "default" mode (this field is then not used), then this field. Applies to http and https URLs only; not to apps.apple.com, itunes.apple.com, play.google.com, apps.microsoft.com or custom-scheme URLs. |
utm_medium | string | null | Added to the redirect URL as utm_medium when no higher source supplies one. Order for utm_medium: an injected utm_medium in "always" mode wins; otherwise the visitor's own utm_medium when parameters.forwarding passes it, then a utm_medium already in the destination URL, then an injected utm_medium in "default" mode (this field is then not used), then this field. Applies to http and https URLs only; not to apps.apple.com, itunes.apple.com, play.google.com, apps.microsoft.com or custom-scheme URLs. |
utm_campaign | string | null | Added to the redirect URL as utm_campaign when no higher source supplies one. Order for utm_campaign: an injected utm_campaign in "always" mode wins; otherwise the visitor's own utm_campaign when parameters.forwarding passes it, then a utm_campaign already in the destination URL, then an injected utm_campaign in "default" mode (this field is then not used), then this field. Applies to http and https URLs only; not to apps.apple.com, itunes.apple.com, play.google.com, apps.microsoft.com or custom-scheme URLs. |
match_window_hours | integer | null | |
expires_at | string | null | |
is_active | boolean | |
is_referral | boolean | True when installs from this link can be claimed as referrals. Only a link with an app can be a referral link. |
referral_since | string | null | When the link became a referral link. Null while is_referral is false. Turning it off clears it, and turning it on again sets a new time. |
tether | boolean | True when the link carries a Tether code to the app after an iPhone install. New links start with false unless the app turns on Tether for new links. |
tether_direct_rule | string | null | What the app opens for a direct visitor of this link, the same choice as the app's `direct_rule`. Null follows the app's `direct_rule`. |
tags | string[] | |
parameters | object | null | Per-link query-parameter rules. `injected` params are appended to the destination URL; `forwarding` controls which incoming params pass through. Org-level defaults are inherited and merged with link-level config (link wins on key conflict). Precedence: link > org. Send `null` (or omit) to clear/inherit the org defaults. |
created_at | string | |
updated_at | string | |
redirected_from | object[] | Old URLs of this link that redirect to it with a permanent 301, oldest first. Present only on GET /v1/links/{id} (and the get_link MCP tool), not on list, update, activate or deactivate responses. |
401Unauthorized
| Field | Type | Description |
|---|---|---|
error* | object |
403Forbidden
| Field | Type | Description |
|---|---|---|
error* | object |
404Not found
| Field | Type | Description |
|---|---|---|
error* | object |
Move Choice
If an app's links later move to its subdomain, a link whose slug is taken on the target stays where it is. Choose a new slug (used if the link moves, and its old URL then redirects to it) or keep the link where it is. Owners and admins can set the choice for any link, members for their own. DELETE clears the choice.
/links/{id}/move-choiceChoose how a link moves
For a link that cannot move with its slug: move it with a new slug (the old URL redirects to it), or keep it where it is. Owners and admins may set it for any link, members for their own. Needs the links:write scope.
Parameters
| Name | Type | In | Description |
|---|---|---|---|
id* | string | path |
Responses
200The saved choice
| Field | Type | Description |
|---|---|---|
link_id | string | |
choice | "keep" | "new_slug" | |
new_slug | string | null |
400Invalid link ID or body. SLUG_UNCHANGED when new_slug equals the link's current slug.
| Field | Type | Description |
|---|---|---|
error* | object |
401Unauthorized
| Field | Type | Description |
|---|---|---|
error* | object |
403Forbidden. A member can only change their own links.
| Field | Type | Description |
|---|---|---|
error* | object |
404Not found
| Field | Type | Description |
|---|---|---|
error* | object |
409SLUG_TAKEN when new_slug is held by a link or by an old URL on the target subdomain, or is the slug another link on the previous subdomain would use there, whether it chose it or keeps its own (details.slug and details.domain). LINK_MOVE_NOT_PENDING when the link does not use an app's previous subdomain.
| Field | Type | Description |
|---|---|---|
error* | object |
/links/{id}/move-choiceClear a link's move choice
Removes the choice, so the link moves with its slug when it can. Needs the links:write scope.
Parameters
| Name | Type | In | Description |
|---|---|---|---|
id* | string | path |
Responses
204Cleared
400Invalid link ID
| Field | Type | Description |
|---|---|---|
error* | object |
401Unauthorized
| Field | Type | Description |
|---|---|---|
error* | object |
403Forbidden. A member can only change their own links.
| Field | Type | Description |
|---|---|---|
error* | object |
404Not found
| Field | Type | Description |
|---|---|---|
error* | object |
409LINK_MOVE_NOT_PENDING when the link does not use an app's previous subdomain.
| Field | Type | Description |
|---|---|---|
error* | object |
A link that has moved returns redirected_from on GET /v1/links/{id}: the old URLs that redirect to it, with the date each began. The field is not on the list, update, activate or deactivate responses.
Resolve a Link
/links/resolve/{slug}Resolve a link by slug
Looks up a link by its slug and optional domain. Returns the link's deep link configuration for SDK use. A resolve that returns link data to the WarpLink SDK on a device records one click with the source `app_open`, so an in-app open appears in analytics and counts toward your plan's click allowance. Nothing else records a click: not a refusal, not a known bot, and not a server script or CI job calling this endpoint with a standard API key, which still receives the link data. `destination_url` and the platform URLs are normalized exactly the way the redirect path normalizes them, so a bare origin comes back with its trailing slash, and `custom_params` includes the query parameters already on the stored destination. A resolve that carries the same `X-WarpLink-Tap-Id` as an earlier one records one click, not two, so a client may safely retry a request whose response it never received. A slug that is the old address of a moved link resolves to the moved link: the response carries the link's current domain and slug, and the old address keeps working for as long as the link exists.
Parameters
| Name | Type | In | Description |
|---|---|---|---|
slug* | string | path | |
domain | string | query | Domain to resolve the slug against. Defaults to aplnk.to. |
params | string | query | The tapped URL's raw query string, without the leading question mark. Applied to the returned destination and platform URLs the same way the redirect path applies it. |
X-WarpLink-Tap-Id | string | header | A UUID identifying one tap. The WarpLink SDKs mint one per tap and send the same value on every bounded retry of that tap, so a request whose response was lost does not record a second click. Used as the click's id when it is a valid UUID; an absent or malformed value is ignored and an id is generated instead. |
Responses
200Resolved link
| Field | Type | Description |
|---|---|---|
id | string | |
slug | string | |
domain | string | |
destination_url | string | |
ios_url | string | null | |
ios_fallback_url | string | null | |
android_url | string | null | |
android_fallback_url | string | null | |
custom_params | object | |
created_at | string | |
recovery_token | string | Present only when an SDK opens a referral link inside an app that already counts people who have it. Hand it to your referral flow; it is not an install. Absent otherwise. |
400Validation error
| Field | Type | Description |
|---|---|---|
error* | object |
401Unauthorized
| Field | Type | Description |
|---|---|---|
error* | object |
403The link is password protected (`PASSWORD_REQUIRED`). No destination or platform URLs are returned. Open the short URL in a browser to enter the password.
| Field | Type | Description |
|---|---|---|
error* | object |
404Not found. A link on a suspended custom domain also returns this, so that a suspended domain cannot be told apart from a missing link.
| Field | Type | Description |
|---|---|---|
error* | object |
410Link has expired
| Field | Type | Description |
|---|---|---|
error* | object |
API Overview
Reference for the WarpLink REST API: authentication, rate limiting, error handling, and the endpoints for links, apps, and attribution.
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.