Developer

Links

Signature, parameters, an example call and the sample response for every method in this group, generated from the contract.

your links (filters: campaign, active)

Key permission: none (read)

lid.links.list(input?, options?)

NameTypeRequiredSource
offsetnumberOptionalquery
limitnumberOptionalquery
activestringOptionalquery
campaignIdstringOptionalquery
SDK
const result = await lid.links.list();
Response
{
  "links": [],
  "total": 0,
  "limit": 50,
  "offset": 0
}

create a short link with tracking

Key permission: catalogo (catalog)

lid.links.create(input, options?)

NameTypeRequiredSource
destinationUrlstringRequiredbody
slugstringOptionalbody
domainIdstringOptionalbody
campaignIdstringOptionalbody
tagsstring[]Optionalbody
SDK
const result = await lid.links.create({
  destinationUrl: '…',
});
Response
{
  "link": {
    "id": "062d68c9-13ef-4470-828e-3a7a036f0e6e",
    "slug": "docs-capture-42411",
    "domainId": "564632d5-3a42-4a25-b99e-523bc5baeb14",
    "destinationUrl": "https://devnet.lid.pro/en/checkout/7Thx4DKF8ST1MFvpbDDgYJwS2eWgeVyQ5crEpPzsYtnN",
    "ownerUserId": 3,
    "campaignId": null,
    "sharerUserId": null,
    "sharerPubkey": null,
    "tags": [],
    "writeKey": "wk_2d7be4f9ce4cf204598044f31a124214",
    "active": true,
    "blocked": false,
    "blockedAt": null,
    "blockedReason": null,
    "createdAt": "2026-09-26T17:06:53.560Z",
    "updatedAt": "2026-09-26T17:06:53.560Z",
    "shortUrl": "https://devnet.getlid.xyz/l/docs-capture-42411"
  },
  "quota": {
    "lifetimeUsed": 6,
    "lifetimeLimit": null,
    "lifetimeRemaining": null,
    "todayUsed": 0,
    "dailyLimit": null,
    "dailyRemaining": null,
    "dailyResetInSeconds": null
  }
}

link metrics: clicks, events, conversions, funnel

Key permission: none (read)

lid.links.analytics(input, options?)

NameTypeRequiredSource
idstringRequiredpath
SDK
const result = await lid.links.analytics({
  id: '…',
});
Response
{
  "linkId": "062d68c9-13ef-4470-828e-3a7a036f0e6e",
  "clicks": {
    "total": 0,
    "unique": 0,
    "byDay": [],
    "topReferrers": []
  },
  "events": {
    "total": 0,
    "byName": []
  },
  "conversions": {
    "byStatus": {}
  },
  "funnel": {
    "clicks": 0,
    "events": 0,
    "conversions": 0
  }
}