Skip to main content

API Overview

The Windback API lets you manage churn events, generate recovery emails, track customer behavior, and access analytics programmatically.

Base URL

All endpoints are served over HTTPS. HTTP requests are rejected.

Authentication

Windback supports two authentication methods:

JWT Bearer Token

Used by the dashboard and web app. Obtained via login or OAuth.

API Key

Used for server-side SDK calls and API access. Pass via header.
Never expose your secret key (sk_) in client-side code. Use the public key (pub_) for widgets and webhooks.

Endpoints

Authentication

Projects

Churn Events

Recovery & Email Variants

Stats & Analytics

Event Tracking

Cancel Flow

Webhooks

Team & Invitations

Response Format

All API responses follow a consistent JSON format:

Success Response

Error Response

Pagination

List endpoints support cursor-based pagination:

Error Handling

Rate Limits

Rate limit headers (X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset) are included in all responses.