Skip to content

Link

Defined in: src/schema.ts:203

A short link.

Property Type Description Defined in
android? string Destination for Android visitors who reach the server (e.g. Play Store listing). src/schema.ts:233
archived? boolean - src/schema.ts:244
clicks? number Approximate non-bot click counter, used for maxClicks and list views. src/schema.ts:246
createdAt string - src/schema.ts:248
createdBy? string - src/schema.ts:250
deepLink? LinkDeepLink - src/schema.ts:234
description? string - src/schema.ts:214
disabled? boolean - src/schema.ts:243
domain string Hostname of the short domain. src/schema.ts:208
expiredUrl? string Where expired links go. Unset = 410 page. src/schema.ts:221
expiresAt? string ISO-8601; after it the link is expired. src/schema.ts:219
externalId? string Host-side id for idempotent upserts and lookups. Unique per tenant. src/schema.ts:217
id string "lnk_…", server-generated. src/schema.ts:205
indexable? boolean Let search engines index the short URL. Default false (X-Robots-Tag: noindex). src/schema.ts:242
ios? string Destination for iOS visitors who reach the server (e.g. App Store listing). src/schema.ts:231
maxClicks? number Expire after this many (non-bot) clicks. Enforced best-effort (ADR 0002). src/schema.ts:223
metadata? JsonObject - src/schema.ts:247
passQuery? boolean Forward the short URL’s query string to the destination. Default true. src/schema.ts:240
password? PasswordHash Present when the link is password-protected. src/schema.ts:225
preview? LinkPreview Link-preview overrides for unfurlers (Slack, X, iMessage, …). src/schema.ts:228
redirectStatus? RedirectStatus Default 302. src/schema.ts:236
rules LinkRule[] - src/schema.ts:229
slug string Slug as written (display form). Matching uses the normalized key (ADR 0012). src/schema.ts:210
tags string[] - src/schema.ts:215
tenant string - src/schema.ts:206
title? string - src/schema.ts:213
trackConversions? boolean Append the click id to the destination for conversion attribution (ADR 0010). src/schema.ts:238
updatedAt string - src/schema.ts:249
url string Default destination (absolute http(s) URL, or an app scheme URL). src/schema.ts:212
utm? Utm - src/schema.ts:226