Get revenue
get_revenueFetch an app's monthly recurring revenue, paying customer count, and per-rail revenue split. Optionally get a daily time series for trend analysis.
Instructions
Get an app's recurring revenue from its maintained revenue ledger (a point-read, never a scan). Returns MRR in cents, the paying-customer count, and the per-rail split across Stripe, Apple, and Google; with granularity='day' it adds a daily time series over the window. Use for 'what's our MRR', 'how many paying customers', or revenue-trend questions. An app with no revenue yet returns zeros, not an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Only with granularity='day': the trend window in days (1–366, default 90). | |
| project | No | The app to read, as a project id from list_projects (e.g. 'proj_3a8f137bccdd4f'). With a workspace key (cd_wk_) this is required unless you've set a default via use_project; with a single-app key it is ignored. | |
| granularity | No | How to aggregate: 'total' (default) = the latest snapshot; 'day' = a daily time series across the window. |