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
- JavaScript
- Python
curl https://api.linklane.io/api/links?limit=2 \
-H "Authorization: Bearer $LINKLANE_API_KEY"
const res = await fetch("https://api.linklane.io/api/links?limit=2", {
headers: { Authorization: `Bearer ${process.env.LINKLANE_API_KEY}` },
});
const links = await res.json();
import os
import requests
res = requests.get(
"https://api.linklane.io/api/links",
params={"limit": 2},
headers={"Authorization": f"Bearer {os.environ['LINKLANE_API_KEY']}"},
)
links = res.json()
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 itsclear_*flag. Sendingnulldoes not clear a field. See Update a link.
Who can call what
Each endpoint shows an Auth label:
| Label | Meaning |
|---|---|
| API key or session | Works with an API key. The key needs the scope shown next to the label. |
| Dashboard session only | Used by the LinkLane app. An API key gets 401. |
| No auth | Public. 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
| Method | Path | Scope | What it does |
|---|---|---|---|
POST | /api/links | links:write | Create a link |
GET | /api/links | links:read | List and search links |
GET | /api/links/count | links:read | Count links that match a filter |
GET | /api/links/{link_id} | links:read | Get one link |
PATCH | /api/links/{link_id} | links:write | Change a link |
DELETE | /api/links/{link_id} | links:write | Delete a link and its clicks |
GET | /api/links/{link_id}/analytics | analytics:read | Totals, trend and breakdowns for one link |
GET | /api/links/{link_id}/heatmap | analytics:read | Clicks by weekday and hour |
GET | /api/links/{link_id}/events.csv | analytics:read | Raw click events as CSV |
GET | /api/stats/overview | analytics:read | Link count, lifetime clicks, 14-day trend |
GET | /api/stats/analytics | analytics:read | Breakdowns across all links |
GET | /api/stats/insights | analytics:read | Links that moved most |
GET | /api/campaigns | links:read | List campaigns |
GET | /api/domains | links:read | List custom domains |
Two more endpoints need no auth at all: the conversion pixel and postback.