Skip to main content

Get flow data

Enterprise Only
This API is available exclusively in Countly Enterprise.

Endpoint

/o/flows?method=data

Overview

Returns calculated flow data document for a flow.

Authentication

Countly API supports three authentication methods:

  1. API key query parameter: api_key=YOUR_API_KEY
  2. Auth token query parameter: auth_token=YOUR_AUTH_TOKEN
  3. Auth token header: countly-token: YOUR_AUTH_TOKEN

Permissions

Requires flows Read permission.

Request Parameters

ParameterTypeRequiredDescription
methodStringYesMust be data.
app_idStringYesTarget app ID.
_idStringYesFlow ID. Must start with <app_id>_.
api_keyStringConditionalRequired if auth_token is not provided.
auth_tokenStringConditionalRequired if api_key is not provided.

Configuration Impact

SettingDefaultAffectsUser-visible impact
flows.*Flows feature defaultsFlows analytics query behavior and result shaping.Changes to flows settings can affect returned paths, aggregation behavior, and limits.

Response

Success Response

{
"_id": "64f5c0d8f4f7ac0012ab3456_67bd31c92e7f0b0012ab4567_data"
}

Response Fields

FieldTypeDescription
(root object)ObjectFirst matching flow data document, or empty object.

Error Responses

  • 400
{
"result": "Flow not found"
}

Behavior/Processing

  • Validates _id prefix against app_id.
  • Reads countly.flow_data by _id regex (^<flow_id>.*).
  • Returns first matched document or {}.

Database Collections

CollectionUsed forData touched by this endpoint
countly.flow_dataEndpoint data sourceStores endpoint-related records this endpoint reads or modifies.

Examples

/o/flows?
method=data&
app_id=64f5c0d8f4f7ac0012ab3456&
_id=64f5c0d8f4f7ac0012ab3456_67bd31c92e7f0b0012ab4567


Last Updated

2026-02-16