SumoRouter
SumoRouter Admin API

Analytics

Server

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.

Get platform analytics › query Parameters

from
​string · date-time

Start of the period (inclusive), RFC 3339.

to
​string · date-time

End of the period (exclusive), RFC 3339. Defaults to now.

tz
​string

IANA time zone for day/hour boundaries, e.g. Asia/Jakarta. Defaults to the site time zone.

Get platform analytics › Responses

Analytics.

bucket
​string · enum · required
Enum values:
hour
day
​object · required
​object[] · required
​object[] · required

Up to 100 models by revenue.

​object[] · required

Up to 100 users by revenue.