OneLinkProductAPI & SDKs
Product · API & SDKs

Programmable smart links.

A REST API and first-party SDKs for Node, Swift, Kotlin, Go and Python. Create, update, and read clicks programmatically — generate a link per campaign, per influencer, per ad.

bashcopy
$ curl -X POST https://api.oneli.nk/v1/links \
-H "Authorization: Bearer ol_live_••••" \
-d '{ "slug": "spfy",
"rules": [
{ "match": "ios", "dest": "apps.apple.com/app/spfy" },
{ "match": "android", "dest": "play.google.com/spfy" },
{ "match": "*", "dest": "spfy.fm" }
] }'
REST API

Twelve endpoints. The whole product.

Stable v1 since 2024. Versioned with deprecation headers.

MethodPathPurpose
POST/v1/linksCreate a smart link
GET/v1/linksList links · paginated
GET/v1/links/{slug}Read a link + its rules
PATCH/v1/links/{slug}Update rules, slug, or domain
DELETE/v1/links/{slug}Archive a link
POST/v1/links/bulkCreate up to 1,000 in one request
GET/v1/links/{slug}/clicksStream raw clicks (JSONL)
GET/v1/links/{slug}/statsAggregated by country / OS / UTM
POST/v1/qr/{slug}Generate a styled QR · PNG/SVG/PDF
GET/v1/domainsList custom domains
POST/v1/webhooksSubscribe to click / conversion events
GET/v1/usageCurrent month clicks + plan limits
v1.4.2
Node.js
TypeScript
v1.2.0
Swift
iOS 14+
v1.4.0
Kotlin
Android 8+
v1.1.0
Go
Modules
v1.3.1
Python
Py 3.10+
Get started free

Try OneLink. One link, every platform.

Free forever for 25 links and 100k clicks/month.