Node.js Setup

Last updated on Sep 08, 2026

Current SDK release: 0.2.14 (September 2026).

Node.js setup tutorial

Automate link creation and reporting from your backend or scripts.

Before you start

  • LinkMe workspace with at least one app
  • Server/API key generated in the portal (write scope)

1. Install the package

npm install @li-nk.me/node-sdk

Package: @li-nk.me/node-sdk

2. Instantiate the client

import LinkMeClient from '@li-nk.me/node-sdk';

const linkme = new LinkMeClient({
  apiKey: process.env.LINKME_SERVER_KEY, // optional for read-only calls
});

CommonJS usage

const LinkMeClient = require('@li-nk.me/node-sdk').default;

3. Manage links programmatically

// List links for an app
const links = await linkme.listLinks('app_123');

// Create a marketing slug
await linkme.createLink({
  appId: 'app_123',
  slug: 'spring',
  deepLink: '/promo/spring',
  redirects: {
    ios: 'https://apps.apple.com/...',
    android: 'https://play.google.com/...',
    web: 'https://example.com/spring',
    forceWeb: false,
  },
});

// Update attributes later
await linkme.updateLink('spring', {
  web_fallback_url: 'https://example.com/spring-2026',
});

// Delete if needed
await linkme.deleteLink('spring');

All methods return typed responses; check their definitions in node_modules/@li-nk.me/node-sdk/dist/index.d.ts or the SDK reference.

4. Explore the source

This monorepo already includes the SDK source under sdks/node. Inspect src/client.ts to see each REST call and adapt it for custom tooling.

Next steps

  • Reference the generated TypeScript types (dist/index.d.ts) for the complete API surface.
  • Pair Node automation with the REST Endpoints & OpenAPI reference to build dashboards or QA workflows.