POST/api/links
Create Short LinkGenerates a tracked short link with custom slug, target destination, and optional campaign tags.
curl -X POST https://www.linkforge.site/api/links \
-H "Authorization: Bearer lf_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"destinationUrl": "https://clientstore.com/promo?utm_source=app",
"title": "Summer Campaign Link",
"slug": "summer26"
}'Response (201 Created){
"id": "clk_01ha7bc2de",
"shortUrl": "https://linkforge.site/summer26",
"slug": "summer26",
"destinationUrl": "https://clientstore.com/promo?utm_source=app",
"clickCount": 0,
"createdAt": "2026-09-14T12:00:00.000Z"
} POST/api/links/:id/qr
Dynamic QR Vector ExportExport print-ready vector SVG or high-resolution 300 DPI PNG assets with embedded brand logos and Level H error correction.
curl -X POST https://www.linkforge.site/api/links/clk_01ha7bc2de/qr \
-H "Authorization: Bearer lf_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"format": "svg",
"errorCorrection": "H",
"size": 1024
}'GET/api/analytics/clicks
Query Click MetricsRetrieve bot-filtered click counts, unique visitors, device distributions, and geographic telemetry for any link.
curl -X GET "https://www.linkforge.site/api/analytics/clicks?linkId=clk_01ha7bc2de&period=30d" \
-H "Authorization: Bearer lf_live_your_api_key"