Admin MCP — Marketing
Ledger-side reports: stats, cohorts, cumulative LTV, retention, MRR, auto-renew, infra costs, transactions
get/admin/mcp/marketing/ltv
Request
- Base URLhttps://api.miaai.chat (the document declares no server; this is the origin it was published from)
- URLhttps://api.miaai.chat/admin/mcp/marketing/ltv
- AuthHTTP bearer
Query parameters
presetstring
Example:last_7d
Named window, ends yesterday. One of: yesterday, last_7d, last_14d, last_28d, last_30d, last_90d, this_month, last_month, lifetime
fromstring
UTC yyyy-MM-dd
tostring
UTC yyyy-MM-dd
reportstring required
One of stats, cohorts, cumulative_ltv, retention, mrr, auto_renew, infra_costs, transactions
revenueModestring
gross | net (default net)
funnelTypesstring
productIdentsstring
countriesstring
experimentsstring
samplestring
cohorts only
breakdownstring
cohorts only
viewBystring
cumulative_ltv only
calculateUsingstring
cumulative_ltv only
limitnumber
transactions only
offsetnumber
transactions only
searchstring
transactions only
Headers
x-mcp-api-keystring required
Scoped read-only marketing key (env MCP_MARKETING_API_KEY; the master MCP_API_KEY also works)
Changes
No recorded changes to this operation across all 1 revision of this API.