Skip to main content

Flows - API Documentation

Enterprise Only
This API is available exclusively in Countly Enterprise.

Overview

Flows helps you analyze user journeys across events, views, and crash groups. You can define flow schemas, calculate path data, and manage which flows are enabled.

Key Features

  • Build reusable flow schemas for common user journeys.
  • Analyze both event-based and view-based paths.
  • Filter flows with user segmentation and excluded events.
  • Start calculations on demand and review calculated path graphs.
  • Enable or disable flows in bulk without deleting definitions.
  • Use crash-group and view catalogs to build more precise paths.

Flow Types

Flow TypePurposeTypical Start/End Inputs
eventsTrack movement across custom and system events.start.event / end.event (for crash paths, use [CLY]_crash with cid).
viewsTrack navigation across app screens or web pages.start.event / end.event as [CLY]_view with vid.

Read Endpoints

Write Endpoints

Data Sources

  • countly.flow_schemas: Flow definitions and status.
  • countly.flow_data: Calculated flow graph/path data.
  • countly.events: App event list for flow event pickers.
  • countly.app_viewsmeta: App views for view-based flow pickers.
  • countly.app_crashgroups{appId}: App crash groups for crash-based flow pickers.
  • countly.members: Flow creator details in info endpoint.

Configuration Settings

SettingDefaultWhat it controls
regenerateInterval3600Minimum interval for automatic flow regeneration jobs.
nodesCn10Maximum number of nodes calculated per step in flow results.
maxDepth20Maximum number of steps calculated for a flow.
skipAutoFlowsfalseWhen enabled, automatic creation of default "Basic Events flow" and "Basic Views flow" is skipped.

Performance Considerations

  • Higher maxDepth increases path length and can significantly increase calculation time.
  • Higher nodesCn increases branch width per step and may increase memory usage during calculations.
  • Longer periods (for example 90days or custom wide ranges) process more events and can take longer.
  • Using broad flows without exclusions can increase dataset size; excluding noisy events usually improves performance.
  • User segmentation can reduce processed data size and improve calculation speed when filters are targeted.
  • Flow calculation runs asynchronously; large flows may remain in calculating/error states longer before results are available.

Workflow

  1. Create a flow with Flows - Create.
  2. Run calculation with Flows - Calculate.
  3. Read schema and result data with Flows - Info and Flows - Data.
  4. Edit, disable, or delete as needed.

Last Updated: 2026-02-15