See also: Clv concept and configuration for what this API powers, when to call it, and how it is configured.
See the CLV feature page for business context, scoring methodology, and segment definitions.
Base Path
GET /api/v1/customers//clv
Returns the cached CLV record for a customer. If no cached record exists, computes CLV on-demand and caches the result. Roles: Any authenticated user (no role check — only requires valid tenant).Path Parameters
Response 200
Response Fields
Example
POST /api/v1/customers//clv
Force recompute CLV for a specific customer. Always recalculates from current interaction summaries, ignoring any cached value. Roles: Any authenticated user (no role check — only requires valid tenant).Path Parameters
Response 200
Example
POST /api/v1/clv/compute
Batch compute CLV for all customers in the tenant, or filtered to a specific segment. Processes customers in batches of 50 with parallel execution. Roles: Any authenticated user (no role check — only requires valid tenant).Request Body
When a
segment filter is provided, the batch includes customers currently in that segment plus any new customers without a CLV record. This ensures new customers are always scored.Response 200
Response Fields
Example
Error Codes
Using CLV in ranking
A customer’sclvScore can directly tilt the PRIE formula
at decision time. Set a non-zero clvWeight on a formula Score node (or the
clv weight key on a Ranking Profile) and the
engine multiplies each candidate’s score by impact^(clvWeight × clvScore/100) —
high-CLV customers see high-impact offers ranked higher. A customer with no CLV
row is left untouched (the term is skipped). See
Scoring strategies for the worked mechanics.