KiteDocs
SDK Reference

SDK Reference

Send backend product events and customer traits to Kite.

Install the public Node.js beta package:

npm install @kitesdk/node@beta

Node.js

import { Kite } from '@kitesdk/node';

const kite = new Kite({
  apiKey: process.env.KITE_API_KEY!,
});

await kite.track({
  customerId: 'customer_123',
  event: 'feature.used',
  properties: { feature: 'reports' },
});

The SDK retries transient failures and generates idempotency keys when retries are enabled. Use the onError callback for observability; delivery methods intentionally return undefined instead of throwing after a request failure.

Server-side only

API keys identify a Kite project and environment. Never include a kt_test_... or kt_live_... key in browser bundles.

On this page