Windback.
API Reference

Stats

API reference for the statistics endpoint.

Stats API

Get aggregate churn and recovery statistics.

Get Stats

GET /api/v1/stats

Auth: JWT Bearer or Secret API Key

Response:

{
  "total_events": 150,
  "new_events": 12,
  "recovered_events": 45,
  "lost_events": 30,
  "total_mrr_at_risk": 750000,
  "recovered_mrr": 225000,
  "recovery_rate": 30.0
}

Field Descriptions:

FieldTypeDescription
total_eventsintTotal churn events
new_eventsintEvents in new status
recovered_eventsintSuccessfully recovered customers
lost_eventsintPermanently lost customers
total_mrr_at_riskintTotal MRR at risk in cents
recovered_mrrintMRR recovered in cents
recovery_ratefloatRecovery percentage

If you have no churn events yet, all values return 0. The endpoint never errors for empty data.

On this page