iachat/app/controllers/api/v1
Rodribm10 aed6d62640 feat(retention): summary KPIs + cohort endpoints
Exposes two JSON endpoints under /api/v1/accounts/:id/captain/reports:
- GET /retention — aggregate KPIs (active/recurring/sleeping/at-risk/
  churned, new vs returned in period, Pix generated/paid/conversion,
  retention rates at 30d and 90d)
- GET /retention/cohort — monthly cohort matrix, 12 months lookback,
  12 months of offset. Each cell is % of the cohort that interacted in
  month M+N. SQL-aggregated with DATE_TRUNC + DISTINCT so it is a
  single query even on large histories.
2026-04-22 09:59:21 -03:00
..
accounts feat(retention): summary KPIs + cohort endpoints 2026-04-22 09:59:21 -03:00
integrations feat: Slack link unfurling (#7940) 2023-09-29 19:35:56 +05:30
profile feat: MFA (#12290) 2025-09-18 20:19:24 +05:30
widget Merge branch 'main' into chore/merge-upstream-4.11.0 2026-02-17 23:05:26 -03:00
accounts_controller.rb feat: Conversation workflows(EE) (#13040) 2026-01-27 11:36:20 +04:00
notification_subscriptions_controller.rb fix: Remove the notification subscription if present (#5510) 2022-09-27 12:36:57 -07:00
profiles_controller.rb Merge branch 'main' into chore/merge-upstream 2025-05-30 11:03:07 -03:00
tracking_controller.rb feat: add landing click attribution tracking and stats endpoint 2026-03-02 17:37:28 -03:00
webhooks_controller.rb chore: Upgrade Exception tracking (#4638) 2022-05-09 14:23:19 +05:30