brikl.ink

Short link service with analytics. Every click is tracked.

How it works

Create a short link via API → share brikl.ink/abc123 → every click is logged with full analytics → redirect to target.

Analytics collected per click

IPVisitor IP address
CountryGeo from headers
BrowserChrome, Safari, etc.
OSWindows, iOS, Android
DeviceMobile, Desktop, Tablet
ReferrerWhere they came from
LanguageAccept-Language header
TimestampExact click time

Create a short link POST

POST https://brikl.ink/api/create
Headers:
  Authorization: Bearer YOUR_TOKEN
  Content-Type: application/json

Body:
{
  "url": "https://example.com/very/long/url",
  "storeId": 1,          // optional
  "checkoutId": 42,      // optional
  "step": 1,             // optional (notification step)
  "partnerName": "John", // optional — creates partner stats page
  "customCode": "sale",  // optional — custom short code
  "region": "ua"         // optional — "ua" (full) or "eu" (GDPR minimal)
}

Response:
{
  "success": true,
  "code": "a1b2c3",
  "shortUrl": "https://brikl.ink/a1b2c3",
  "partnerToken": "...",             // if partnerName set
  "partnerUrl": "https://brikl.ink/s/..."  // if partnerName set
}

Get click stats GET

GET https://brikl.ink/api/stats?storeId=1
Headers:
  Authorization: Bearer YOUR_TOKEN

Click analytics for a link GET

GET https://brikl.ink/api/clicks/a1b2c3?limit=50
Headers:
  Authorization: Bearer YOUR_TOKEN

List all links GET

GET https://brikl.ink/api/links?limit=50&offset=0&search=keyword

Admin Panel

Visit /admin for the web dashboard.

Setup