Skip to main content

List funnels

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?method=get_funnels

Overview

Returns funnel definitions for the app, with optional group filtering and DataTable pagination/search parameters.

Authentication

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

Permissions

Requires funnels Read permission.

Request Parameters

ParameterTypeRequiredDescription
methodStringYesMust be get_funnels.
app_idStringYesTarget app ID.
groupStringNoOptional group filter. Use fav for current member favorites.
iDisplayStartNumberNoPagination offset (DataTable).
iDisplayLengthNumberNoPage size (DataTable).
iSortCol_0NumberNoSort column index (DataTable).
sSortDir_0StringNoSort direction (asc or desc).
sSearchStringNoSearch value for funnel name.
outputFormatStringNorows (default) or full.
api_keyStringConditionalRequired if auth_token is not provided.
auth_tokenStringConditionalRequired if api_key is not provided.

Examples

/o?
method=get_funnels&
app_id=64f5c0d8f4f7ac0012ab3456
/o?
method=get_funnels&
app_id=64f5c0d8f4f7ac0012ab3456&
group=fav&
iDisplayStart=0&
iDisplayLength=10&
sSearch=purchase

Response

Success Response

Default (outputFormat=rows) response:

[
{
"_id": "67bd31c92e7f0b0012ab4567",
"name": "Purchase Funnel",
"description": "Product view to purchase",
"type": "session-independent",
"steps": ["Product View", "Add to Cart", "Purchase"],
"created": 1739558400000
}
]

outputFormat=full response:

{
"sEcho": "0",
"iTotalRecords": 1,
"iTotalDisplayRecords": 1,
"aaData": [
{
"_id": "67bd31c92e7f0b0012ab4567",
"name": "Purchase Funnel",
"description": "Product view to purchase",
"type": "session-independent",
"steps": ["Product View", "Add to Cart", "Purchase"],
"groups": {
"fav_64f5c0d8f4f7ac0012ab9999": 1
},
"created": 1739558400000
}
],
"favTotal": [
{
"value": 1
}
]
}

Response Fields

FieldTypeDescription
[]ArrayDefault rows output (outputFormat=rows).
sEchoStringDataTable echo value (outputFormat=full).
iTotalRecordsNumberTotal rows before filtering (outputFormat=full).
iTotalDisplayRecordsNumberTotal rows after filtering (outputFormat=full).
aaDataArrayPaged rows (outputFormat=full).
favTotalArrayFavorite count facet for current member.

Error Responses

  • 200
false

Behavior

  • Uses DataTable pipeline for sorting, searching, and pagination.
  • Supports group filtering; for favorites it uses groups.fav_<member_id>.
  • Removes other users' favorite keys before returning rows (hideGroupValues).
Implementation details

Database Collections

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