SumoRouter Admin API
string · date-timestring · date-timestringstring · enum · required
Platform-wide revenue, upstream cost, traffic and top models/users.
Get platform analytics
GET
https://ai.brandkamu.id/api/admin
/analytics
Revenue (what users were billed), Sumopod cost, traffic, top-ups and new users for the period, a
time series, and the top 100 models and users by revenue. The period defaults to the 30 days
before to (default now) and can span at most 366 days. Periods of up to 25 hours are bucketed
per hour, longer ones per day; every bucket appears, empty ones included.
query Parameters
fromStart of the period (inclusive), RFC 3339.
toEnd of the period (exclusive), RFC 3339. Defaults to now.
tzIANA time zone for day/hour boundaries, e.g. Asia/Jakarta. Defaults to the site time zone.
Get platform analytics › Responses
Analytics.
bucketEnum values:
hour
day
object · required
object[] · required
object[] · required
Up to 100 models by revenue.
object[] · required
Up to 100 users by revenue.