Cohorts
List Saved Cohorts
The list endpoint returns all of the cohorts in a given project. The JSON formatted return contains the cohort name, id, count, description, creation date, and visibility for every cohort in the project.
If you're trying to get a list of users in a cohort, you can use the /engage endpoint with the filter_by_cohort parameter. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.
post/cohorts/list
Request
- Base URLhttps://mixpanel.com/api/query
- Auth
- HTTP basic
- or HTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
project_idinteger required
Required if using service account to authenticate request.
workspace_idinteger
The id of the workspace if applicable.
Response
Success.
Changes
No recorded changes to this operation across all 1 revision of this API.