Skip to main content

Node.js SDK

The official Windback SDK for Node.js and TypeScript. Use it to track events, create churn events, and manage recovery flows from your server.

Installation

Quick Start

Use your secret key (sk_) for server-side SDK calls. Never expose it in client-side code.

Track Events

Track customer behavior events to improve churn prediction and recovery personalization.

Cancel Flow

Submit cancellation data from your custom cancel flow.

Create Churn Events

Manually create churn events when not using webhooks.

Recovery Templates

Create custom recovery email templates.

Method Reference

Error Handling

TypeScript Support

The SDK is written in TypeScript and ships with full type definitions. All methods, parameters, and responses are fully typed.
The SDK automatically retries failed requests up to 3 times with exponential backoff.