Overview
score() returns a risk assessment for a user — a 0–1 score, a tier classification, the signals driving the score, and a recommendation for what to do.
Signature
Parameters
string
required
The user to score.
AbortSignal
Cancel the request.
RiskScore
Score tiers
Example signals
no_login_7d— no login in 7 daysno_login_14d— no login in 14 daysfeature_usage_drop— feature usage fell >50% week-over-weeksupport_spike— 3+ support tickets in 7 daysexport_all_data— exported all data (exit intent signal)cancellation_page_viewed— viewed the cancellation pagebilling_failed— recent payment failuretrial_expiring— trial expires within 3 daysdowngrade_initiated— initiated a plan downgrade