Build on the
OneLinkPilot API
REST endpoints for smart links, QR codes, campaigns, analytics, and webhooks — all scoped to your workspace.
Quick start in 3 steps
From zero to your first programmatic smart link in minutes.
Create an API key
Sign in to your dashboard → Settings → API Keys. Copy your live key (olp_live_…).
Authenticate
Send Authorization: Bearer TOKEN on every request, or login via POST /auth/login.
Create a link
POST to /links with iOS, Android, and fallback URLs. Start routing traffic immediately.
Bearer token auth
Include your API key or login token in the Authorization header. All workspace endpoints require a valid bearer token.
- API keys from dashboard settings
- Login tokens expire after 1 hour
- Workspace-scoped access control
Authorization: Bearer olp_live_xxxxx
JSON REST API v1
All requests use Content-Type: application/json. Responses follow a consistent { success, data, error } envelope.
- Production:
https://api.dazzling-teal-porcupine.rainbowwinglabs.com/api/v1 - Local:
localhost:8081/api/v1 - UTF-8 JSON everywhere
https://api.dazzling-teal-porcupine.rainbowwinglabs.com/api/v1
API endpoints
Grouped by resource. All paths are relative to the base URL above.
Authentication
/health
API health and database status
/auth/login
Authenticate and receive a bearer token
/auth/register
Create account and workspace
/auth/logout
Invalidate current token
Smart Links
/links
List smart links in workspace
/links
Create a new smart link
/links/{id}
Get link details and routing rules
/links/{id}
Update link destinations and settings
/links/{id}
Archive a smart link
QR Codes
/qr-codes
List QR codes in workspace
/qr-codes
Generate a dynamic QR code
/qr-codes/{id}
Get QR code metadata and scan stats
Campaigns & Analytics
/campaigns
List campaigns
/campaigns
Create a campaign
/analytics/summary
Workspace KPIs and scan totals
/analytics/campaigns
Campaign performance breakdown
/analytics/export
Export analytics CSV
Workspace
/domains
List custom domains
/team
List workspace members
/api-keys
List API keys
/webhooks
Register a webhook endpoint
Example request
Create a smart link with device-specific destinations.
POST https://api.dazzling-teal-porcupine.rainbowwinglabs.com/api/v1/links Content-Type: application/json Authorization: Bearer olp_live_xxxxx { "alias": "summer-launch", "ios_url": "https://apps.apple.com/app/id123", "android_url": "https://play.google.com/store/apps/details?id=com.app", "fallback_url": "https://example.com/download" }
{
"success": true,
"data": {
"id": 42,
"alias": "summer-launch",
"short_url": "https://lnk.io/summer-launch",
"status": "active"
}
}
curl -X POST https://api.dazzling-teal-porcupine.rainbowwinglabs.com/api/v1/links \ -H "Content-Type: application/json" \ -H "Authorization: Bearer olp_live_xxxxx" \ -d '{"alias":"summer-launch","ios_url":"https://apps.apple.com/app/id123","android_url":"https://play.google.com/store/apps/details?id=com.app","fallback_url":"https://example.com/download"}'
Webhooks
Subscribe to real-time events. Failed deliveries retry up to 3 times via cron.
Rate limits
Limits vary by plan. Response headers expose remaining quota.
X-RateLimit-LimitReady to integrate?
Create a free workspace, generate an API key, and start building in minutes.