Skip to main content

List flows

Enterprise

This endpoint is part of Countly Enterprise. To get access, contact sales or compare versions. Existing customers can reach the support portal with questions.

Endpoint

/o/flows?method=list

Overview

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

Authentication

Pass api_key or auth_token as a query parameter, or send countly-token as a header. See Authentication.

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.

Examples

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

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

  • 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.
Implementation details

Database Collections

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