TrimLynk Developer Documentation
Welcome to the official TrimLynk Developer Portal. Build link shorteners, dynamic QR code generators, attribution funnels, and real-time webhook pipelines with zero runtime dependencies.
Install the TypeScript / Node.js SDK
bash
npm install @trimlynk/sdkQuick Example (Node.js 22+)
ts
import { TrimLynk } from "@trimlynk/sdk";
const client = new TrimLynk({ apiKey: process.env.TRIMLYNK_API_KEY });
const link = await client.links.create({
originalUrl: "https://example.com/launch",
customSlug: "launch-2026",
utmSource: "newsletter",
autoDecorateUtm: true,
});
console.log(link.shortUrl);Explore the Docs
- API Keys & Authentication: Learn how
tl_live_andtl_test_keys work. - SDK Reference: Browse full TypeDoc class, method, and interface docs.
- Webhooks & HMAC: Verify
X-TrimLynk-Signatureheaders withTrimLynk.constructWebhookEvent. - CLI: Run
trimlynk webhooks listenfor local webhook tunneling.