Customize your cookie preferences

We respect your right to privacy. You can choose not to allow some types of cookies. Your cookie preferences will apply across our website.

Strictly Necessary
Analytics & Performance
Functional Preferences
Marketing & Conversion

We use cookies on our site to enhance your user experience, provide personalized content, and analyze our traffic.

Developer Platform

TrimLynk Developer Hub

Integrate programmatic URL shortening, dynamic QR code generation, AI analytics, and webhooks into your applications.

TrimLynk REST API v1 Base URLs

Versioned production endpoints with 100% backward-compatible unversioned aliases:

https://api.trimlynk.com/v1 (Recommended)https://trimlynk.com/api/v1https://trimlynk.com/api (Unversioned Alias)

Authentication

Pass your API key prefixed with tk_ in the HTTP Authorization header:

Authorization: Bearer tk_live_your_key

Rate Limits & Headers

All API responses return standard IETF RateLimit headers:

RateLimit-Limit: 1000

RateLimit-Remaining: 998

RateLimit-Reset: 3540s

Retry-After: (on 429s)

TrimLynk 5-Second Quickstart (cURL v1)
# 1. Shorten a URL instantly via TrimLynk API v1
curl -X POST https://trimlynk.com/api/v1/free-urls/shorten \
  -H "Content-Type: application/json" \
  -d '{"longUrl": "https://example.com/product/launch-2026"}'

# 2. Response (with RateLimit headers):
# RateLimit-Limit: 1000
# RateLimit-Remaining: 999
# RateLimit-Reset: 3600
{
  "shortCode": "x8K2mQ",
  "shortUrl": "https://trimlynk.com/x8K2mQ",
  "longUrl": "https://example.com/product/launch-2026",
  "expiresAt": "2026-09-04T12:00:00.000Z"
}