Skip to main content

Read funnel

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_funnel

Overview

Returns a single funnel definition by ID, including creator display data.

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_funnel.
app_idStringYesTarget app ID.
funnelStringYesFunnel ID.
api_keyStringConditionalRequired if auth_token is not provided.
auth_tokenStringConditionalRequired if api_key is not provided.

Examples

/o?
method=get_funnel&
app_id=64f5c0d8f4f7ac0012ab3456&
funnel=67f1c22912df5acb8f8d5caaf0f89a31

Response

Success Response

{
"_id": "67f1c22912df5acb8f8d5caaf0f89a31",
"app_id": "64f5c0d8f4f7ac0012ab3456",
"name": "Purchase Funnel",
"description": "Product view to purchase",
"type": "session-independent",
"steps": ["Product View", "Add to Cart", "Purchase"],
"queries": ["{}", "{}", "{}"],
"queryTexts": ["All Users", "All Users", "All Users"],
"stepGroups": [{"c": "and"}, {"c": "and"}, {"c": "and"}],
"memberData": {
"_id": "64f5c0d8f4f7ac0012ab9999",
"full_name": "Jane Doe"
}
}

Response Fields

FieldTypeDescription
_idStringFunnel ID.
stepsArrayOrdered step events.
queriesArrayPer-step query definitions.
queryTextsArrayPer-step query labels.
stepGroupsArrayPer-step group logic metadata.
memberDataObjectMatched creator member info when available.

Error Responses

  • 400
{
"result": "Missing request parameter: funnel"
}

When funnel is not found, the endpoint returns an empty object:

{}

Behavior

  • Reads funnel by _id and app_id.
  • Performs member lookup to include creator details.
  • Returns first matched funnel document.
Implementation details

Database Collections

CollectionUsed forData touched by this endpoint
countly.funnelsEndpoint data sourceStores endpoint-related records this endpoint reads or modifies.
countly.membersMember/account enrichmentStores member profile fields (for example names/IDs) used to resolve actor metadata.