Skip to main content
POST
On an internal project, this route returns a 400 wrong_project_type: use Get performance instead.
Each row carries customer only when group_by is set. Its risk_status is one of "healthy", "watch", "at_risk", "unprofitable", or "unknown" when there is no revenue to compute a margin from.

Parameters

Passed in the request body.
string
required
Start of the period, inclusive. YYYY-MM-DD.
string
End of the period, inclusive. Defaults to today. YYYY-MM-DD.
string
default:"day"
One row per period; "all" collapses the whole date range into a single row (per group_by, if set). One of day, week, month, quarter, year or all.
string
Split each period into one row per customer. Omit for one row per period. Only customer.
string[]
Restrict to these customers. Omit for every customer. See Get customers.
string[]
Restrict the cost to these call names. Omit for every call. Revenue is not narrowed. See Get calls.
string[]
Restrict to the customers who used any of these feature tags in the period: the other customers’ rows are removed.
boolean
default:"false"
Apply free AI credits discounts to cost.
integer
default:"100"
Number of rows per page. Max 1000.
string
The route is paginated: pass the previous page’s next_cursor, as is, to get the next page. has_more says whether another page exists.