Skip to main content

List flows

Enterprise Only
This API is available exclusively in Countly Enterprise.

Endpoint

/o/flows?method=list

Overview

Returns paginated flow schemas for the app in DataTables-compatible format.

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 list.
app_idStringYesTarget app ID.
iDisplayStartNumberNoPagination offset.
iDisplayLengthNumberNoPagination size (-1 means no limit).
iSortCol_0NumberNoSort column index.
sSortDir_0StringNoSort direction asc/desc.
sSearchStringNoCase-insensitive name filter.
sEchoStringNoEcho value returned in response.
api_keyStringConditionalRequired if auth_token is not provided.
auth_tokenStringConditionalRequired if api_key is not provided.

Response

Success Response

{
"sEcho": "1",
"iTotalRecords": 2,
"iTotalDisplayRecords": 2,
"aaData": [
{
"_id": "64f5c0d8f4f7ac0012ab3456_67bd31c92e7f0b0012ab4567",
"name": "Signup to Purchase",
"status": "new",
"type": "events"
}
]
}

Response Fields

FieldTypeDescription
sEchoStringEcho value from request (if provided).
iTotalRecordsNumberTotal flow count for app.
iTotalDisplayRecordsNumberDisplay count used by client table.
aaDataArrayFlow schema list.

Error Responses

This endpoint does not define a dedicated structured error payload; error output can vary by failure path.

Behavior/Processing

  • Reads countly.flow_schemas by app-prefixed _id.
  • Parses user_segmentation JSON string when possible.
  • Cleans quoted period strings.
  • Forces status="disabled" when disabled flag is set.

Database Collections

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

Examples

/o/flows?
method=list&
app_id=64f5c0d8f4f7ac0012ab3456&
iDisplayStart=0&
iDisplayLength=10&
sSearch=signup


Last Updated

2026-02-16