Operator

Revenue against AI cost for platform operators (read-only): MRR, paid invoices, Build Credits sold and used, AI model cost, gross margin, open credit reservations and the teams with the highest AI cost over the last `days` days (default 30)

get/operator/billing/revenue

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/operator/billing/revenue
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Query parameters

daysinteger

Response

Revenue

daysinteger required
currencystring required
requiredGrossMarginnumber required
revenuePerCreditCentsnumber required
mrrinteger required

minor units (cents)

paidSubscriptionsinteger required
creditsSoldnumber required
creditsSoldValueinteger required

minor units (cents)

creditsGrantednumber required
creditsUsednumber required
creditsUsedValueinteger required

minor units (cents)

aiCostMicrosinteger required

model cost of the AI work paid with Build Credits, micro-USD (1,000,000 = $1)

assistantCostMicrosinteger required

model cost of the dashboard assistant (its own monthly allowance), micro-USD

grossMarginnumber nullable required

Changes

No recorded changes to this operation across all 1 revision of this API.