Links
Signature, parameters, an example call and the sample response for every method in this group, generated from the contract.
lid.links.list
your links (filters: campaign, active)
Key permission: none (read)
lid.links.list(input?, options?)
| Name | Type | Required | Source |
|---|---|---|---|
offset | number | Optional | query |
limit | number | Optional | query |
active | string | Optional | query |
campaignId | string | Optional | query |
const result = await lid.links.list();{
"links": [],
"total": 0,
"limit": 50,
"offset": 0
}lid.links.create
create a short link with tracking
Key permission: catalogo (catalog)
lid.links.create(input, options?)
| Name | Type | Required | Source |
|---|---|---|---|
destinationUrl | string | Required | body |
slug | string | Optional | body |
domainId | string | Optional | body |
campaignId | string | Optional | body |
tags | string[] | Optional | body |
const result = await lid.links.create({
destinationUrl: '…',
});{
"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
}
}lid.links.analytics
link metrics: clicks, events, conversions, funnel
Key permission: none (read)
lid.links.analytics(input, options?)
| Name | Type | Required | Source |
|---|---|---|---|
id | string | Required | path |
const result = await lid.links.analytics({
id: '…',
});{
"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
}
}