Skip to main content
Documentation
API Reference

Links

Links API endpoints to create, list, retrieve, update, and delete deep links, including destinations, fallbacks, and UTM parameters.

POST/links

Create 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

NameTypeInDescription
Idempotency-KeystringheaderA 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_runbooleanqueryWhen `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

FieldTypeDescription
destination_url*stringThe 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`.
slugstringCustom slug. Auto-generated if omitted.
namestringThe link's name in the dashboard. Shows the slug if omitted.
domainstringDomain 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_urlstring
ios_fallback_urlstringThe 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_urlstring
android_fallback_urlstringThe 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_titlestring
og_descriptionstring
og_image_urlstring
tagsstring[]
expires_atstringMust be in the future.
passwordstring
app_idstring
is_referralbooleanMake 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.
tetherbooleanCarry 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_rulestring | nullWhat 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_sourcestringAdded 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_mediumstringAdded 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_campaignstringAdded 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_hoursintegerDeferred deep link attribution match window in hours.
parametersobject | nullPer-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.
FieldTypeDescription
dry_run*"true"
result*objectThe 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`.
FieldTypeDescription
idstring
short_urlstringe.g. https://aplnk.to/abc123
slugstringe.g. abc123
namestring | nullThe link's own name in the dashboard. Null shows the slug.e.g. Summer sale
domainstringe.g. aplnk.to
destination_urlstring
ios_urlstring | null
ios_fallback_urlstring | null
android_urlstring | null
android_fallback_urlstring | null
og_titlestring | null
og_descriptionstring | null
og_image_urlstring | null
app_idstring | null
utm_sourcestring | nullAdded 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_mediumstring | nullAdded 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_campaignstring | nullAdded 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_hoursinteger | null
expires_atstring | null
is_activeboolean
is_referralbooleanTrue when installs from this link can be claimed as referrals. Only a link with an app can be a referral link.
referral_sincestring | nullWhen 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.
tetherbooleanTrue 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_rulestring | nullWhat 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`.
tagsstring[]
parametersobject | nullPer-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_atstring
updated_atstring
redirected_fromobject[]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.
FieldTypeDescription
error*object
401Unauthorized
FieldTypeDescription
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.
FieldTypeDescription
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.
FieldTypeDescription
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.
FieldTypeDescription
error*object
429Rate limit exceeded
FieldTypeDescription
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.

GET/links

List links

Parameters

NameTypeInDescription
limitintegerquery
offsetintegerquery
tagstringquery
is_active"true" | "false"query
is_referral"true" | "false"queryReturn only referral links (true) or only links that are not (false).
searchstringquery

Responses

200List of links
FieldTypeDescription
dataobject[]
paginationobject
401Unauthorized
FieldTypeDescription
error*object
403Forbidden
FieldTypeDescription
error*object
GET/links/{id}

Get a link

Parameters

NameTypeInDescription
id*stringpath

Responses

200Link details
FieldTypeDescription
idstring
short_urlstringe.g. https://aplnk.to/abc123
slugstringe.g. abc123
namestring | nullThe link's own name in the dashboard. Null shows the slug.e.g. Summer sale
domainstringe.g. aplnk.to
destination_urlstring
ios_urlstring | null
ios_fallback_urlstring | null
android_urlstring | null
android_fallback_urlstring | null
og_titlestring | null
og_descriptionstring | null
og_image_urlstring | null
app_idstring | null
utm_sourcestring | nullAdded 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_mediumstring | nullAdded 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_campaignstring | nullAdded 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_hoursinteger | null
expires_atstring | null
is_activeboolean
is_referralbooleanTrue when installs from this link can be claimed as referrals. Only a link with an app can be a referral link.
referral_sincestring | nullWhen 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.
tetherbooleanTrue 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_rulestring | nullWhat 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`.
tagsstring[]
parametersobject | nullPer-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_atstring
updated_atstring
redirected_fromobject[]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
FieldTypeDescription
error*object
403Forbidden
FieldTypeDescription
error*object
404Not found
FieldTypeDescription
error*object
PATCH/links/{id}

Update a link

Parameters

NameTypeInDescription
id*stringpath
dry_runbooleanqueryWhen `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

FieldTypeDescription
destination_urlstringThe 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`.
namestring | nullRename the link. Send null to show the slug again.
ios_urlstring | null
ios_fallback_urlstring | nullThe 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_urlstring | null
android_fallback_urlstring | nullThe 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_titlestring | null
og_descriptionstring | null
og_image_urlstring | null
tagsarray | null
expires_atstring | null
passwordstring | null
app_idstring | null
is_activebooleanSet 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_referralbooleanTurn 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.
tetherbooleanTurn 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_rulestring | nullWhat 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_sourcestring | nullAdded 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_mediumstring | nullAdded 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_campaignstring | nullAdded 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_hoursinteger | null
parametersobject | nullPer-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.
FieldTypeDescription
idstring
short_urlstringe.g. https://aplnk.to/abc123
slugstringe.g. abc123
namestring | nullThe link's own name in the dashboard. Null shows the slug.e.g. Summer sale
domainstringe.g. aplnk.to
destination_urlstring
ios_urlstring | null
ios_fallback_urlstring | null
android_urlstring | null
android_fallback_urlstring | null
og_titlestring | null
og_descriptionstring | null
og_image_urlstring | null
app_idstring | null
utm_sourcestring | nullAdded 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_mediumstring | nullAdded 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_campaignstring | nullAdded 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_hoursinteger | null
expires_atstring | null
is_activeboolean
is_referralbooleanTrue when installs from this link can be claimed as referrals. Only a link with an app can be a referral link.
referral_sincestring | nullWhen 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.
tetherbooleanTrue 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_rulestring | nullWhat 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`.
tagsstring[]
parametersobject | nullPer-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_atstring
updated_atstring
redirected_fromobject[]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.
FieldTypeDescription
error*object
401Unauthorized
FieldTypeDescription
error*object
403Forbidden
FieldTypeDescription
error*object
404Not found
FieldTypeDescription
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.
FieldTypeDescription
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> }.

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 always mode wins over everything, including the visitor's own value.
  • Otherwise, the first of these that has a value wins:
    1. The visitor's own value, when parameters.forwarding passes that key. The default forwarding rule passes five keys: utm_source, utm_medium, utm_campaign, utm_term and utm_content. Other keys, such as utm_id, are not forwarded by default.
    2. A value already in the destination URL.
    3. An injected parameter in default mode. When one exists for the key, the link field is not used for that key.
    4. The link field.

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/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

NameTypeInDescription
id*stringpath

Responses

200Deleted link
FieldTypeDescription
idstring
short_urlstringe.g. https://aplnk.to/abc123
slugstringe.g. abc123
namestring | nullThe link's own name in the dashboard. Null shows the slug.e.g. Summer sale
domainstringe.g. aplnk.to
destination_urlstring
ios_urlstring | null
ios_fallback_urlstring | null
android_urlstring | null
android_fallback_urlstring | null
og_titlestring | null
og_descriptionstring | null
og_image_urlstring | null
app_idstring | null
utm_sourcestring | nullAdded 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_mediumstring | nullAdded 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_campaignstring | nullAdded 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_hoursinteger | null
expires_atstring | null
is_activeboolean
is_referralbooleanTrue when installs from this link can be claimed as referrals. Only a link with an app can be a referral link.
referral_sincestring | nullWhen 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.
tetherbooleanTrue 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_rulestring | nullWhat 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`.
tagsstring[]
parametersobject | nullPer-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_atstring
updated_atstring
redirected_fromobject[]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
FieldTypeDescription
error*object
403Forbidden
FieldTypeDescription
error*object
404Not found
FieldTypeDescription
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.

PUT/links/{id}/move-choice

Choose 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

NameTypeInDescription
id*stringpath

Responses

200The saved choice
FieldTypeDescription
link_idstring
choice"keep" | "new_slug"
new_slugstring | null
400Invalid link ID or body. SLUG_UNCHANGED when new_slug equals the link's current slug.
FieldTypeDescription
error*object
401Unauthorized
FieldTypeDescription
error*object
403Forbidden. A member can only change their own links.
FieldTypeDescription
error*object
404Not found
FieldTypeDescription
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.
FieldTypeDescription
error*object
DELETE/links/{id}/move-choice

Clear a link's move choice

Removes the choice, so the link moves with its slug when it can. Needs the links:write scope.

Parameters

NameTypeInDescription
id*stringpath

Responses

204Cleared
400Invalid link ID
FieldTypeDescription
error*object
401Unauthorized
FieldTypeDescription
error*object
403Forbidden. A member can only change their own links.
FieldTypeDescription
error*object
404Not found
FieldTypeDescription
error*object
409LINK_MOVE_NOT_PENDING when the link does not use an app's previous subdomain.
FieldTypeDescription
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.

GET/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

NameTypeInDescription
slug*stringpath
domainstringqueryDomain to resolve the slug against. Defaults to aplnk.to.
paramsstringqueryThe 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-IdstringheaderA 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
FieldTypeDescription
idstring
slugstring
domainstring
destination_urlstring
ios_urlstring | null
ios_fallback_urlstring | null
android_urlstring | null
android_fallback_urlstring | null
custom_paramsobject
created_atstring
recovery_tokenstringPresent 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
FieldTypeDescription
error*object
401Unauthorized
FieldTypeDescription
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.
FieldTypeDescription
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.
FieldTypeDescription
error*object
410Link has expired
FieldTypeDescription
error*object