Churn analytics
Aggregated view: label distribution, trends and at-risk customers for your tenant.
GET
https://zedchurn.fr/api/v1/churn/analyticsAggregated view: label distribution, trends and at-risk customers for your tenant.
Auth — X-API-Key
Category — Churn
Query parameters
| Nom | Type | Requis | Description |
|---|---|---|---|
| period | string | — | 7d | 30d | 90d (défaut 30d) |
Examples
curl -X GET 'https://zedchurn.fr/api/v1/churn/analytics' \
-H 'X-API-Key: api_zedcheckout_votre_cle_api'Responses
200OK
{
"period": "30d",
"distribution": { "critical": 12, "high": 45, "medium": 120, "low": 823 },
"avg_score": "0.28",
"at_risk_count": 57
}