mixpanel_retention
Mixpanel retention cohorts read-only
Description
MIXPANEL RETENTION — how many of the people who did a first thing came back and did another, cohorted by day / week / month. This endpoint is FULLY SUPPORTED, unlike segmentation and funnels, which Mixpanel has put in maintenance mode — so it is the one typed Mixpanel report to reach for first. retentionType "birth" cohorts people by their FIRST occurrence of bornEvent (new-user retention, and Mixpanel's DEFAULT); "compounded" counts anyone active. Warning: MIXPANEL REQUIRES bornEvent WHENEVER retentionType IS "birth", AND BIRTH IS THE DEFAULT — so a call with neither is refused HERE, for free, rather than spending one of the sixty hourly queries on their 400; use list_mixpanel_events first to name a real event. TWO FILTERS, NOT ONE: bornWhere filters who ENTERS the cohort, where filters the RETURNING event. And interval is the WIDTH of each bucket while intervalCount is HOW MANY of them — different knobs. Dates are YYYY-MM-DD and BOTH ENDS ARE INCLUSIVE, resolved in the PROJECT's timezone (UTC unless its owner changed it) rather than in yours. 60 queries/hour across the whole Query API (5 concurrent) — the tightest budget of any connector here, so widen a range rather than looping over days. Read-only, 0 credits.
Parameters
| Parameter | Type | Description |
|---|---|---|
fromDate | string | YYYY-MM-DD (default 30 days ago) |
toDate | string | YYYY-MM-DD (default today) |
retentionType | "birth" | "compounded" | "birth" = cohort by first occurrence of bornEvent; "compounded" = anyone active |
bornEvent | string | the event that puts someone into the cohort — REQUIRED by Mixpanel when retentionType is "birth", which is the default |
event | string | the returning event; omitted means any event |
unit | "day" | "week" | "month" | the interval unit (default day) |
interval | number | the WIDTH of each bucket, in DAYS. Mixpanel cannot take this together with "unit" — it answers HTTP 500 to the pair, so pass one or the other (default: interval 1 day) |
intervalCount | number | HOW MANY buckets to return (default 1). A "0th" bucket is always included for events inside the first interval |
bornWhere | string | a Mixpanel segmentation expression filtering who ENTERS the cohort (the born event) |
where | string | a Mixpanel segmentation expression filtering the RETURNING event |
on | string | a property expression to segment the returning event on — this is what breaks a retention curve down by e.g. plan or platform |
limit | number | top N segmentation values; does nothing unless "on" is set |
unboundedRetention | boolean | accumulate right-to-left, so day N means "retained on day N or any day after" |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/mixpanel_retention.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"mixpanel_retention","arguments":{}}}
CLI
hermoso call mixpanel_retention --json '{}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
list_mixpanel_eventsList Mixpanel events (or one event’s properties)mixpanel_insightsRead a saved Mixpanel reportmixpanel_segmentationMixpanel event segmentation (maintenance mode)posthog_personsLook up people in PostHogmixpanel_funnelRead a saved Mixpanel funnel (maintenance mode)list_posthog_session_recordingsList PostHog session replaysposthog_insightRead a saved PostHog insight (funnel / retention / trend)amplitude_segmentationAmplitude event segmentationposthog_queryAsk PostHog a question in HogQLamplitude_funnelAmplitude funnel (conversion + drop-off)