Documentation Index
Fetch the complete documentation index at: https://docs.flowsbuilt.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
atRisk() returns a paginated list of users whose churn risk score exceeds a given threshold. Use it for bulk outreach campaigns, CS dashboards, or nightly reports.
For streaming all at-risk users without pagination management, see atRiskAll().
Signature
AtRiskOptions
Minimum score to include (0–1). Default:
0.5. Must be a finite number between 0 and 1.Filter to users on a specific plan (e.g.
'pro', 'enterprise'). Requires plan to have been set via identify().Page size. Default:
50. Maximum: 200.Pagination offset. Default:
0.Cancel the request.
AtRiskResult
Examples
Get high-risk users
Filter by plan
Paginate all high-risk users
Nightly CS report
Errors
| Code | When |
|---|---|
VALIDATION_ERROR | threshold is not between 0 and 1 |
UNAUTHORIZED | API key invalid |
TIMEOUT | Request timed out |