Skip to main content

Python SDK

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

Installation

The SDK requires Python 3.8 or later.

Quick Start

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

Track Events

Create Churn Events

Cancel Flow

Async Support

The SDK includes an async client for use with asyncio and frameworks like FastAPI.
The async client uses httpx under the hood for non-blocking HTTP requests.

Method Reference

Error Handling

The SDK automatically retries failed requests up to 3 times with exponential backoff.