Skip to main content
POST
Get combined revenue and cost analytics (V2)

Authorizations

x-api-key
string
header
required

Enter your API key in the format x-api-key <api-key>*

Body

application/json

Combined analytics request (start_time/end_time optional - defaults to last 7 days)

end_time
string<date-time>
expand
string[]

Expand options - specify which entities to expand

external_customer_id
string

Optional - for specific customer

feature_ids
string[]

Additional filters

limit
integer

Pagination

offset
integer
start_time
string<date-time>

Time range fields (optional - defaults to last 7 days if not provided)

Response

OK

cost_analytics
object[]

Cost analytics array (flattened from nested structure)

currency
string
end_time
string<date-time>
margin
string

Revenue - Cost

margin_percent
string

(Margin / Revenue) * 100

roi
string

(Revenue - Cost) / Cost

roi_percent
string

ROI * 100

start_time
string<date-time>
total_cost
string
total_revenue
string

Derived metrics