TrimLynk Docs

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/sdk

Quick 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_ and tl_test_ keys work.
  • SDK Reference: Browse full TypeDoc class, method, and interface docs.
  • Webhooks & HMAC: Verify X-TrimLynk-Signature headers with TrimLynk.constructWebhookEvent.
  • CLI: Run trimlynk webhooks listen for local webhook tunneling.

Ready to test in your workspace?

Manage API keys, live webhooks, and request telemetry in the TrimLynk Developer Console.

Open Developer Console