Skip to main content

API overview

The LinkLane API is a JSON REST API. Use it to create and edit links, read click analytics, and record conversions from your own code.

Base URL​

Every endpoint lives under one base URL:

https://api.linklane.io/api

Make your first request​

You need an API key. API keys are on the Pro plan and above. Create one on the API Keys page in the app, then send it as a Bearer token. The Authentication page has the details.

curl https://api.linklane.io/api/links?limit=2 \
-H "Authorization: Bearer $LINKLANE_API_KEY"
Response · 200 OK
[
{
"id": "6f1c2b9e-1d4a-4c39-9a51-0c7e8b2d4f10",
"code": "spring-sale",
"url": "https://shop.example.com/spring",
"short_url": "https://lny.me/spring-sale",
"clicks": 1284,
"tags": ["email"],
"created_at": "2026-11-02T09:14:03.511000+00:00"
}
]

The response above is trimmed. See the link object for every field.

Request format​

  • Send JSON bodies with Content-Type: application/json.
  • Every object has a string id (a UUID). Use it in paths such as /api/links/{link_id}.
  • Times are ISO 8601 strings in UTC, for example 2026-11-30T14:00:00+00:00.
  • To remove a setting with PATCH, send its clear_* flag. Sending null does not clear a field. See Update a link.

Who can call what​

Each endpoint shows an Auth label:

LabelMeaning
API key or sessionWorks with an API key. The key needs the scope shown next to the label.
Dashboard session onlyUsed by the LinkLane app. An API key gets 401.
No authPublic. Used by browsers and servers you don't control, for example the conversion pixel.

Each endpoint also shows the lowest Plan that can use it. "Pro and above" means Pro, Growth and Enterprise. A call on a lower plan returns 402. See Errors.

Endpoints with an API key​

MethodPathScopeWhat it does
POST/api/linkslinks:writeCreate a link
GET/api/linkslinks:readList and search links
GET/api/links/countlinks:readCount links that match a filter
GET/api/links/{link_id}links:readGet one link
PATCH/api/links/{link_id}links:writeChange a link
DELETE/api/links/{link_id}links:writeDelete a link and its clicks
GET/api/links/{link_id}/analyticsanalytics:readTotals, trend and breakdowns for one link
GET/api/links/{link_id}/heatmapanalytics:readClicks by weekday and hour
GET/api/links/{link_id}/events.csvanalytics:readRaw click events as CSV
GET/api/stats/overviewanalytics:readLink count, lifetime clicks, 14-day trend
GET/api/stats/analyticsanalytics:readBreakdowns across all links
GET/api/stats/insightsanalytics:readLinks that moved most
GET/api/campaignslinks:readList campaigns
GET/api/domainslinks:readList custom domains

Two more endpoints need no auth at all: the conversion pixel and postback.

Next steps​