CRM
Cohort outcomes: wins/losses, volume onboarded, milestones, effort per win, pipeline
Cohort = records that hit the event in [from, to). Win/loss resolves through each status option's outcome (seed ids won/lost by convention). pipeline is a current snapshot and ignores the range.
Authorization
Query parameters
frominteger | nullInclusive start of the range (epoch ms).
tointeger | nullExclusive end of the range (epoch ms).
userIdstringOmit = the caller's own metrics. team = one entry per workspace member (owner/admin only). A member id = that member (owner/admin only).
tzstringIANA zone the day buckets are cut in (default America/New_York).
listIdstringScope every metric to that list's members and vocabulary. A 1-element alias for listIds — do not pass both.
listIdsstringCSV of list ids to scope to (union, not intersection — a record that's a member of more than one selected list is still counted once in every distinct-record metric and once per day-bucket). A list id the caller can't see is silently dropped, not an error. Do not pass alongside listId.
Responses
200objectThe outcomes report.Show attributesHide attributes
dataobjectrequiredShow child attributesHide child attributes
fromnumberrequiredpipelineobject[]requiredCURRENT snapshot of records by status (ignores from/to and userId).
Show child attributesHide child attributes
labelstringrequiredoutcomeenum | nullrequiredwonlostnullrecordsintegerrequiredstatusIdstring | nullrequiredtonumberrequiredusersobject[]requiredShow child attributesHide child attributes
effortPerWinobjectrequiredlossesobjectrequiredmilestonesobjectrequiredpreviousobjectrequireduserIdstringrequiredvolumeOnboardedobjectrequiredwinsobjectrequiredwinsByStatusobject[]required400objectValidation error401objectUnauthorized403objectForbidden (authenticated, but missing required context — e.g. no active organization)404objectNot found413objectResponse payload too large — detail endpoint capped to fit Lambda response limits503objectSearch timed out or the cluster is overloaded — retry after `Retry-After` seconds.